diff --git a/.travis.yml b/.travis.yml.bak similarity index 100% rename from .travis.yml rename to .travis.yml.bak diff --git a/appveyor.yml b/appveyor.yml index 96cfc7b6..42b2b465 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,12 @@ environment: matrix: - julia_version: 1.0 - - julia_version: 1 - - julia_version: nightly + # - julia_version: 1 + # - julia_version: nightly platform: - x86 # 32-bit - - x64 # 64-bit + # - x64 # 64-bit ## uncomment the following lines to allow failures on nightly julia ## (tests will run but not make your overall status red) diff --git a/src/normed.jl b/src/normed.jl index bf1311c0..f888f74d 100644 --- a/src/normed.jl +++ b/src/normed.jl @@ -169,3 +169,6 @@ end _unsafe_trunc(::Type{T}, x::Integer) where {T} = x % T _unsafe_trunc(::Type{T}, x) where {T} = unsafe_trunc(T, x) + +# predicates +isinteger(x::Normed{T,f}) where {T,f} = (x.i%(1<_is_type(x, ST), names(FixedPointNumbers)), [:Fixed, :Normed, :FixedPoint]) + fixed_types = [@eval $(x) for x in fixed_types] +end