Skip to content

Commit c3c4d92

Browse files
committed
Test initial_value without Pluto
1 parent 66d6788 commit c3c4d92

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/Bonds.jl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
142142
count[] += 1
143143
end
144144
"""),
145+
Cell("""
146+
@assert x_old == 1
147+
"""),
148+
Cell("""
149+
@assert x_new == 1
150+
"""),
151+
Cell("""
152+
@assert x_transform == "x"
153+
"""),
145154
])
146155
fakeclient.connected_notebook = notebook
147156

@@ -183,6 +192,9 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
183192
@test noerror(notebook.cells[23])
184193
@test noerror(notebook.cells[24])
185194
@test noerror(notebook.cells[25])
195+
@test noerror(notebook.cells[26])
196+
@test noerror(notebook.cells[27])
197+
@test noerror(notebook.cells[28])
186198

187199

188200
function set_bond_value(name, value, is_first_value=false)
@@ -239,5 +251,15 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
239251
WorkspaceManager.unmake_workspace((🍭, notebook))
240252
🍭.options.evaluation.workspace_use_distributed = false
241253

254+
255+
@test jl_is_runnable(notebook.path)
256+
257+
# should_not_run = """
258+
# @assert 1 == 2
259+
# """
260+
# p = tempname()
261+
# write(p, should_not_run)
262+
# @test !jl_is_runnable(p)
263+
242264
end
243265
end

0 commit comments

Comments
 (0)