3 ms·
I use https://github.com/sconover/wrong https://github.com/sconover/wrong with MiniTest which might qualify as another example of Ruby "tricks" to achieve a dif
by danneu 13y ago
I use https://github.com/sconover/wrong https://github.com/sconover/wrong with MiniTest which might qualify as another example of Ruby "tricks" to achieve a different interpretation of expressiveness.
The result is the ability to express
assert { :apple == :orange }
assert { [:apple, :banana, :pear].include? :orange }
and let the computer figure out the appropriate error message and expected-vs-actual diff.