Skip to content

Commit

Permalink
add test for dirty inside dirtyRec (tests 198ba94)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki93 committed Nov 23, 2018
1 parent 931ce6a commit 2754124
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,15 @@ local function testAutoApply()
state.apply(target, root:__flush(true))
assert(equal(target, root))

-- Containing `dirtyRec` table
root.f = {}
root.f.g = { r = 10 }
state.apply(target, root:__flush(true))
assert(equal(target, root))
root.f.g.r = 20
state.apply(target, root:__flush(true))
assert(equal(target, root))

-- Generative
for i = 1, 20 do
root.u = genTable(8, 7)
Expand Down

0 comments on commit 2754124

Please sign in to comment.