Skip to content

Commit

Permalink
#58 test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 7, 2024
1 parent 3b71125 commit 9c81a2b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/fbe/test_overwrite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ def test_simple_insert

def test_safe_insert
fb = Factbase.new
fb.insert.bar = 'x'
f = fb.insert
f._id = 1
Fbe.overwrite(f, :foo, 42, fb:)
assert_equal(2, fb.size)
f1 = fb.insert
f1.bar = 'a'
f2 = fb.insert
f2.bar = 'b'
f2._id = 2
f3 = fb.insert
f3._id = 1
Fbe.overwrite(f3, :foo, 42, fb:)
assert_equal(3, fb.size)
end
end

0 comments on commit 9c81a2b

Please sign in to comment.