Skip to content

Commit acb8c24

Browse files
committed
Make it work on 0.6
1 parent d94f49a commit acb8c24

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ os:
33
- linux
44
- osx
55
julia:
6+
- 0.6
67
- 0.7
78
- nightly
89

REQUIRE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
julia 0.7-beta
1+
julia 0.6
2+
Compat 0.48
23
DualNumbers

src/Quaternions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ __precompile__()
22

33
module Quaternions
44

5+
using Compat
6+
57
import Base: +, -, *, /, ^
68
import Base: abs, abs2, angle, conj, cos, exp, inv, isfinite, log, real, sin, sqrt
79
import Base: convert, promote_rule
8-
import LinearAlgebra: norm, normalize
10+
import Compat.LinearAlgebra: norm, normalize
911

1012
include("Quaternion.jl")
1113
include("Octonion.jl")

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Test
1+
using Compat.Test
22
using Quaternions
33

44
test_associative(x, y, z, ) = @test (x y) z x (y z)

test/test_Quaternion.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
using Quaternions: argq
3-
using LinearAlgebra
3+
using Compat
4+
using Compat.LinearAlgebra
45

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

0 commit comments

Comments
 (0)