Hi,
In funit, the regular expression for assert_array_equal is doesn't allow whitespace. This means that assert_array_equal(a,b) works, but assert_array_equal(a, b) throws an error that can be a bit cryptic. One would expect it to work like assert_equal, where both work.
The relevant line of code is
|
line.match(/\((\w+),(\w+)\)/) |
Hi,
In funit, the regular expression for
assert_array_equalis doesn't allow whitespace. This means thatassert_array_equal(a,b)works, butassert_array_equal(a, b)throws an error that can be a bit cryptic. One would expect it to work likeassert_equal, where both work.The relevant line of code is
nasarb/funit/lib/funit/assertions.rb
Line 60 in b60dcca