diff --git a/test/RecursiveArrayTools/recursivearraytools.jl b/test/RecursiveArrayTools/recursivearraytools.jl index 50c21ab..8c7bc19 100644 --- a/test/RecursiveArrayTools/recursivearraytools.jl +++ b/test/RecursiveArrayTools/recursivearraytools.jl @@ -1 +1,9 @@ -include("../recursivearraytools.jl") +using RecursiveArrayTools, LabelledArrays, Test + +ABC = @SLVector (:a, :b, :c); +A = ABC(1, 2, 3); +B = RecursiveArrayTools.DiffEqArray([A, A], [0.0, 2.0]); +@test getindex(B, :a) == [1, 1] + +B_with_parameters = RecursiveArrayTools.DiffEqArray([A, A], [0.0, 2.0], (1,)) +@test getindex(B_with_parameters, :b) == [2, 2] diff --git a/test/recursivearraytools.jl b/test/recursivearraytools.jl deleted file mode 100644 index 8c7bc19..0000000 --- a/test/recursivearraytools.jl +++ /dev/null @@ -1,9 +0,0 @@ -using RecursiveArrayTools, LabelledArrays, Test - -ABC = @SLVector (:a, :b, :c); -A = ABC(1, 2, 3); -B = RecursiveArrayTools.DiffEqArray([A, A], [0.0, 2.0]); -@test getindex(B, :a) == [1, 1] - -B_with_parameters = RecursiveArrayTools.DiffEqArray([A, A], [0.0, 2.0], (1,)) -@test getindex(B_with_parameters, :b) == [2, 2]