Ask HN: assertEquals, assertEqual, or assert_equal?
Which variant I should use in my own unit-testing library for bash? I using assertEqual now, but I saw both assertEquals (shunit) and assert_equal (bash-unit).
English is foreign language for me, so it is hard to decide. :-/
4 comments
[ 2.1 ms ] story [ 18.6 ms ] threadas far as equal vs. equals: both make sense, but I would favor 'equal' exactly because of this. I don't feel there is a need to constantly add a frivolous character to all of your statements.
Indeed, in unittest2, both assertEquals() and assert_equal() both appear to be deprecated in favor of assertEqual().