From 999563de3afca13f365364af0345c78e450e6613 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 22 Apr 2026 14:04:09 +1200 Subject: [PATCH 1/2] Fix tests now that JSON is alphabetically sorted --- test/Project.toml | 1 + test/visualization/control.html | 2 +- test/visualization/visualization.jl | 10 ++-------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/test/Project.toml b/test/Project.toml index 5d4df5cdb..87b4ffd73 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -8,6 +8,7 @@ JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +SDDP = "f4570300-c277-11e8-125c-4912f86ce65d" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/test/visualization/control.html b/test/visualization/control.html index 10bacdbb6..9b9766b97 100644 --- a/test/visualization/control.html +++ b/test/visualization/control.html @@ -232,7 +232,7 @@
diff --git a/test/visualization/visualization.jl b/test/visualization/visualization.jl index 10bcdd939..623beacdd 100644 --- a/test/visualization/visualization.jl +++ b/test/visualization/visualization.jl @@ -45,16 +45,10 @@ function test_SpaghettiPlot() SDDP.plot(plt, "test.html"; open = false) @test sprint(show, plt) == "A spaghetti plot with 2 scenarios and 3 stages." control = joinpath(@__DIR__, "control.html") - if Sys.WORD_SIZE == 64 - # This fails on 32-bit machines. - @test read("test.html", String) == read(control, String) - end + @test read("test.html", String) == read(control, String) SDDP.save(plt, "test.html"; open = false) @test sprint(show, plt) == "A spaghetti plot with 2 scenarios and 3 stages." - if Sys.WORD_SIZE == 64 - # This fails on 32-bit machines. - @test read("test.html", String) == read(control, String) - end + @test read("test.html", String) == read(control, String) rm("test.html") @test SDDP.launch_file("test.html", identity) isa Cmd return From efd82ad7013f86769d46e3e220de917deb34d0ed Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 22 Apr 2026 14:30:25 +1200 Subject: [PATCH 2/2] Update --- docs/Project.toml | 8 ++++---- test/Project.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 32f09c83f..7a8097325 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -23,13 +23,13 @@ CSV = "0.10" DataFrames = "1" Distributions = "0.25" Documenter = "1" -ForwardDiff = "0.10, 1" +ForwardDiff = "1" GR = "0.73" -HiGHS = "1" +HiGHS = "1 - 1.22" Ipopt = "1" -JSON = "0.21" +JSON = "0.21, 1" JuMP = "1.11.1" Literate = "2" Plots = "1" -PowerModels = "0.19, 0.21" +PowerModels = "0.21" StatsPlots = "0.15" diff --git a/test/Project.toml b/test/Project.toml index 87b4ffd73..9d4fd9648 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -13,7 +13,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] -HiGHS = "1" +HiGHS = "1 - 1.22" Ipopt = "1" JSON = "1" JSONSchema = "1"