Skip to content

Commit 1575dbb

Browse files
committed
Updating tests.
1 parent b326652 commit 1575dbb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/runtests.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ using Test
44
import MathLink: WExpr, WSymbol
55

66

7-
@testset "W2Julia" begin
7+
@testset "W2JuliaStruct" begin
88
###Test of a simple MathLink to Julia converter. It converts MathLink expressions to the correcsponding Julia constructions
99
@testset "Lists to Lists" begin
10-
@test W2Julia(W`{1,2,3}`) == [1,2,3]
11-
@test W2Julia([1,2,3]) == [1,2,3]
12-
@test W2Julia([1,2.2,3]) == [1,2.2,3]
13-
@test W2Julia(W`{1,a,3}`) == [1,W"a",3]
14-
@test W2Julia(W`{1,a,{1,2}}`) == [1,W"a",[1,2]]
15-
@test W2Julia([.1,W`{1,a,3}`]) == [.1,[1,W"a",3]]
10+
@test W2JuliaStruct(W`{1,2,3}`) == [1,2,3]
11+
@test W2JuliaStruct([1,2,3]) == [1,2,3]
12+
@test W2JuliaStruct([1,2.2,3]) == [1,2.2,3]
13+
@test W2JuliaStruct(W`{1,a,3}`) == [1,W"a",3]
14+
@test W2JuliaStruct(W`{1,a,{1,2}}`) == [1,W"a",[1,2]]
15+
@test W2JuliaStruct([.1,W`{1,a,3}`]) == [.1,[1,W"a",3]]
1616

1717
end
1818
@testset "Association to Dict" begin
19-
@test W2Julia(Dict( 1 => "A" , "B" => 2)) ==Dict( 1 => "A" , "B" => 2)
19+
@test W2JuliaStruct(Dict( 1 => "A" , "B" => 2)) ==Dict( 1 => "A" , "B" => 2)
2020

21-
@test W2Julia(W`Association["A" -> "B", "C" -> "D"]`) == Dict( "A" => "B" , "C" => "D")
21+
@test W2JuliaStruct(W`Association["A" -> "B", "C" -> "D"]`) == Dict( "A" => "B" , "C" => "D")
2222
end
2323
@testset "Association and List Dict" begin
24-
@test W2Julia(W`Association["A" -> {1,2,3}, "B" -> "C"]`) == Dict( "A" => [1,2,3] , "B" => "C")
24+
@test W2JuliaStruct(W`Association["A" -> {1,2,3}, "B" -> "C"]`) == Dict( "A" => [1,2,3] , "B" => "C")
2525

26-
@test W2Julia(W`Association["A" -> {1,a,3}, "B" -> "C"]`) == Dict( "A" => [1,W"a",3] , "B" => "C")
26+
@test W2JuliaStruct(W`Association["A" -> {1,a,3}, "B" -> "C"]`) == Dict( "A" => [1,W"a",3] , "B" => "C")
2727

2828

29-
@test W2Julia(W`{1,Association["team" -> {1,2,3}, "lastName" -> "Ching"]}`) == [1,Dict( "team" => [1,2,3] , "lastName" => "Ching")]
29+
@test W2JuliaStruct(W`{1,Association["team" -> {1,2,3}, "lastName" -> "Ching"]}`) == [1,Dict( "team" => [1,2,3] , "lastName" => "Ching")]
3030

3131
end
3232

0 commit comments

Comments
 (0)