Skip to content

Commit 915884e

Browse files
committed
Fix tests
1 parent 2bdac10 commit 915884e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/parser.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ tests = [
2121
"a;b \n c;d" => "(toplevel (toplevel a b) (toplevel c d))"
2222
"a \n \n" => "(toplevel a)"
2323
"" => "(toplevel)"
24+
# Early abort in array parsing
25+
"[x@y" => "(toplevel (hcat x) (error-t ✘ y))"
26+
"[x@y]" => "(toplevel (hcat x) (error-t ✘ y ✘))"
2427
],
2528
JuliaSyntax.parse_block => [
2629
"a;b;c" => "(block a b c)"
@@ -652,8 +655,6 @@ tests = [
652655
"[x ; y ; z]" => "(vcat x y z)"
653656
"[x;]" => "(vcat x)"
654657
"[x y]" => "(hcat x y)"
655-
# Early abort
656-
"[x@y" => "(hcat x) (error-t ✘ y)"
657658
# Mismatched rows
658659
"[x y ; z]" => "(vcat (row x y) z)"
659660
# Single elements in rows
@@ -788,9 +789,9 @@ broken_tests = [
788789

789790
@testset "Inline test cases" begin
790791
@testset "$production" for (production, test_specs) in tests
791-
@testset "$(repr(input))" for (input,output) in test_specs
792+
@testset "$(repr(input))" for (input, output) in test_specs
792793
if !(input isa AbstractString)
793-
opts,input = input
794+
opts, input = input
794795
else
795796
opts = NamedTuple()
796797
end

0 commit comments

Comments
 (0)