(theTest, expected, actual)
| 8 | |
| 9 | |
| 10 | def check(theTest, expected, actual) |
| 11 | unless (expected == actual) |
| 12 | puts theTest + " failed" |
| 13 | puts "Actual:\n" |
| 14 | show(actual) |
| 15 | puts "unmatched lines" |
| 16 | show(expected - actual) |
| 17 | puts("Expected: " + expected.inspect) |
| 18 | puts(" Actual: " + actual.inspect) |
| 19 | end |
| 20 | end |
| 21 | |
| 22 | #--------------------------------------------------- |
| 23 |
no test coverage detected