mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Auto strict mode based on optimization level
This commit is contained in:
parent
8b4210e66a
commit
cc4b390d3d
5 changed files with 31 additions and 28 deletions
|
|
@ -9,6 +9,8 @@ local values = vide.values
|
|||
local cleanup = vide.cleanup
|
||||
local create = vide.create
|
||||
|
||||
assert(not vide.strict)
|
||||
|
||||
local function TITLE(name: string)
|
||||
print()
|
||||
print(testkit.color.white(name))
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ end
|
|||
|
||||
local NIL = nil :: any
|
||||
|
||||
vide.strict = false
|
||||
|
||||
TEST("graph", function()
|
||||
local create_node = graph.create_node
|
||||
local track = graph.track
|
||||
|
|
@ -1644,6 +1646,8 @@ TEST("changed()", wrap_root(function()
|
|||
end
|
||||
end))
|
||||
|
||||
vide.strict = true
|
||||
|
||||
TEST("strict", wrap_root(function()
|
||||
vide.strict = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue