Skip to content

Commit 8736dc7

Browse files
authored
Merge pull request #138 from JuliaReach/schillic/parser
Do not run parser tests in Julia v1.12.0-v1.12.2
2 parents 1d817e9 + 9ac453e commit 8736dc7

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

docs/make.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ DocMeta.setdocmeta!(SpaceExParser, :DocTestSetup,
55

66
bib = CitationBibliography(joinpath(@__DIR__, "src", "refs.bib"); style=:alpha)
77

8+
# Julia parser is broken for `'` in v1.12.0 - v1.12.2
9+
doctest = v"1.12.0" <= VERSION <= v"1.12.2" ? false : true
10+
811
makedocs(; sitename="SpaceExParser.jl",
912
modules=[SpaceExParser],
1013
format=Documenter.HTML(; prettyurls=get(ENV, "CI", nothing) == "true",
1114
assets=["assets/aligned.css", "assets/citations.css"]),
1215
pagesonly=true,
16+
doctest=doctest,
1317
plugins=[bib],
1418
pages=["Home" => "index.md",
1519
"Examples" => Any["Introduction" => "examples/examples.md",

test/runtests.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using Test, SpaceExParser, HybridSystems, MathematicalSystems
22

3-
include("unit_examples.jl")
43
include("unit_parse.jl")
5-
include("unit_affine.jl")
4+
@static if VERSION < v"1.12.0" || VERSION > v"1.12.2"
5+
# Julia parser is broken for `'` in v1.12.0 - v1.12.2
6+
include("unit_examples.jl")
7+
include("unit_affine.jl")
8+
end
69

710
include("Aqua.jl")

test/unit_affine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using LazySets
22
AFFINE_SYSTEM = ConstrainedLinearControlContinuousSystem
33

44
@testset "Bouncing ball" begin
5-
H = readsxmodel("../examples/bball/bball_flattened.xml"; ST=AFFINE_SYSTEM)
5+
H = readsxmodel(joinpath(@__DIR__, "../examples/bball/bball_flattened.xml"); ST=AFFINE_SYSTEM)
66

77
@test nmodes(H) == 1
88
@test ntransitions(H) == 1

test/unit_examples.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@testset "Bouncing ball" begin
2-
H = readsxmodel("../examples/bball/bball_flattened.xml")
2+
H = readsxmodel(joinpath(@__DIR__, "../examples/bball/bball_flattened.xml"))
33
@test nmodes(H) == 1
44
@test ntransitions(H) == 1
55

@@ -13,7 +13,8 @@
1313
end
1414

1515
@testset "Van der Pol" begin
16-
H = readsxmodel("../examples/van_der_pol_fourth_quadrant/van_der_pol_fourth_quadrant.xml")
16+
H = readsxmodel(joinpath(@__DIR__,
17+
"../examples/van_der_pol_fourth_quadrant/van_der_pol_fourth_quadrant.xml"))
1718
@test nmodes(H) == 1
1819
@test ntransitions(H) == 0
1920

@@ -23,7 +24,8 @@ end
2324
end
2425

2526
@testset "Lotka-Volterra" begin
26-
H = readsxmodel("../examples/lotka_volterra_fourth_quadrant/lotka_volterra_fourth_quadrant.xml")
27+
H = readsxmodel(joinpath(@__DIR__,
28+
"../examples/lotka_volterra_fourth_quadrant/lotka_volterra_fourth_quadrant.xml"))
2729
@test nmodes(H) == 1
2830
@test ntransitions(H) == 0
2931

@@ -33,7 +35,7 @@ end
3335
end
3436

3537
@testset "Circle" begin
36-
H = readsxmodel("../examples/circle/circle_flattened.xml")
38+
H = readsxmodel(joinpath(@__DIR__, "../examples/circle/circle_flattened.xml"))
3739
@test nmodes(H) == 2
3840
@test ntransitions(H) == 2
3941
for (i, ti) in enumerate(transitions(H))

0 commit comments

Comments
 (0)