lib/tap/test/tap_methods.rb in bahuvrihi-tap-0.10.3 vs lib/tap/test/tap_methods.rb in bahuvrihi-tap-0.10.4
- old
+ new
@@ -146,9 +146,10 @@
assert_equal expected.length, actual.length, "unequal number of records"
expected.each_with_index do |exp_record, i|
case exp_record
when ExpMerge
+ flunk "empty merge #{(nesting + [i]).join(':')}" if exp_record.empty?
exp_record.each_with_index do |exp_audit, j|
assert_audit_records_equal(exp_audit, actual[i][j], nesting + [i,j])
end
when Proc
assert exp_record.call(*actual[i]), "unconfirmed record #{(nesting + [i]).join(':')}"