Ehsan Akhgari wrote:

On the testharness.js side, we have things like assert_regexp_match, for example. I would argue that whether or not assert_regexp_match(a, /foo/, "msg") is more readable than ok(/foo/.match(a), "msg") is very subjective and depends on what the author of the test is used to see.

I don't know whether we do a lot of regexp matching but if we did I would want it to use a dedicated method. I implemented ise because having an entire test reporting via ok(foo === bar, "foo was not exactly equal to bar"); does not make for good debugging. (Sadly I still wasn't able to work out why the test was failing and had to unCC myself from the bug again. (No it wasn't my test.))

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to