Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Dec 13, 2024
1 parent 69146e7 commit 1bc57d1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions julia/test/util_tests.jl
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
using BridgeStan
using BridgeStan: @const
using Test

mutable struct Foo
x::Any
@const y
end

@testset "@const utility" begin
a = Foo(1, 2)
@test a.x == 1
@test a.y == 2
a.x = 3
@test a.x == 3
@test a.y == 2
if VERSION v"1.8"
# y is const
@test_throws ErrorException a.y = 4
else
# y is mutable
a.y = 4
@test a.y == 4
end
end



@testset "download" begin
withenv("BRIDGESTAN" => nothing) do
existing = BridgeStan.get_bridgestan_path(download = false)
Expand Down

0 comments on commit 1bc57d1

Please sign in to comment.