Skip to content

Commit

Permalink
Simplify a test case slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilconway committed Jul 26, 2013
1 parent 3010782 commit 149918e
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions test/tc_collections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,24 +352,18 @@ def test_delete_key

def test_row_equality
rv = RowValueTest.new
rv.run_bg
rv.sync_do {
rv.t1 <+ [[5, 10],
[6, 11]]
rv.t2 <+ [[5, 10],
[6, 15],
[7, 12]]
}

rv.sync_do {
assert_equal(1, rv.t3.length)
assert_equal(2, rv.t4.length)

cnt = rv.t4.select {|t| t == [5, 10, 15]}
assert_equal([], cnt)
}

rv.stop
rv.t1 <+ [[5, 10],
[6, 11]]
rv.t2 <+ [[5, 10],
[6, 15],
[7, 12]]
rv.tick

assert_equal(1, rv.t3.length)
assert_equal(2, rv.t4.length)

cnt = rv.t4.select {|t| t == [5, 10, 15]}
assert_equal([], cnt)
end

def test_types
Expand Down

0 comments on commit 149918e

Please sign in to comment.