UnitTestException on failure
1 shouldEqual(true, true); 2 shouldEqual(false, false); 3 shouldEqual(1, 1) ; 4 shouldEqual("foo", "foo") ; 5 shouldEqual([2, 3], [2, 3]) ; 6 7 shouldEqual(iota(3), [0, 1, 2]); 8 shouldEqual([[0, 1], [0, 1, 2]], [[0, 1], [0, 1, 2]]); 9 shouldEqual([[0, 1], [0, 1, 2]], [iota(2), iota(3)]); 10 shouldEqual([iota(2), iota(3)], [[0, 1], [0, 1, 2]]);
//impure comparisons shouldEqual(1.0, 1.0) ;
Verify that two values are the same. Floating point values are compared using std.math.approxEqual.