Skip to content

Commit

Permalink
Make it work on 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Jul 14, 2018
1 parent d94f49a commit 1734edd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
julia 0.7-beta
julia 0.6
Compat 0.33
DualNumbers
4 changes: 3 additions & 1 deletion src/Quaternions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ __precompile__()

module Quaternions

using Compat

import Base: +, -, *, /, ^
import Base: abs, abs2, angle, conj, cos, exp, inv, isfinite, log, real, sin, sqrt
import Base: convert, promote_rule
import LinearAlgebra: norm, normalize
import Compat.LinearAlgebra: norm, normalize

include("Quaternion.jl")
include("Octonion.jl")
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Test
using Compat.Test
using Quaternions

test_associative(x, y, z, ) = @test (x y) z x (y z)
Expand Down
3 changes: 2 additions & 1 deletion test/test_Quaternion.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

using Quaternions: argq
using LinearAlgebra
using Compat
using Compat.LinearAlgebra

# creating random examples
sample(QT::Type{Quaternion{T}}) where {T <: Integer} = QT(rand(-100:100, 4)..., false)
Expand Down

0 comments on commit 1734edd

Please sign in to comment.