Skip to content

Commit ae8c0e5

Browse files
authored
Merge pull request #25 from swadey/cjf/testset-tweak
Cleanup: put tests in testsets
2 parents 40d4ba3 + 3856325 commit ae8c0e5

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

test/runtests.jl

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ end
252252

253253
#-------------------------------------------------------------------------------
254254
lisp"(import ParserCombinator)"
255-
@test lisp"(@E_str \"S\")" == E"S"
255+
@testset "Module import" begin
256+
@test lisp"(@E_str \"S\")" == E"S"
257+
end
256258

257259
#-------------------------------------------------------------------------------
258260
@testset "Include from file" begin
@@ -265,19 +267,19 @@ lisp"(import ParserCombinator)"
265267
@test !isdefined(@__MODULE__, :not_a_global)
266268
end
267269

268-
# ----------------------------------------------------------------------------------------------------------------------
270+
#-------------------------------------------------------------------------------
269271
# Bug reports
270-
# ----------------------------------------------------------------------------------------------------------------------
271-
@test lisp"""(def game_map (Dict
272-
(=> 'living_room
273-
'((you are in the living room
274-
of a wizards house - there is a wizard
275-
snoring loudly on the couch -)
276-
(west door garden)
277-
(upstairs stairway attic)))))""" == Dict(:living_room =>
278-
Any[ Any[ :you, :are, :in, :the, :living, :room, :of, :a, :wizards, :house, :-,
279-
:there, :is, :a, :wizard, :snoring, :loudly, :on, :the, :couch, :- ],
280-
Any[ :west, :door, :garden ],
281-
Any[ :upstairs, :stairway, :attic ] ])
282-
283-
272+
@testset "Bug reports" begin
273+
@test lisp"""(def game_map (Dict
274+
(=> 'living_room
275+
'((you are in the living room
276+
of a wizards house - there is a wizard
277+
snoring loudly on the couch -)
278+
(west door garden)
279+
(upstairs stairway attic)))))""" ==
280+
Dict(:living_room =>
281+
Any[ Any[ :you, :are, :in, :the, :living, :room, :of, :a, :wizards, :house, :-,
282+
:there, :is, :a, :wizard, :snoring, :loudly, :on, :the, :couch, :- ],
283+
Any[ :west, :door, :garden ],
284+
Any[ :upstairs, :stairway, :attic ] ])
285+
end

0 commit comments

Comments
 (0)