zbcmlq
Last Updated: February 25, 2016
·
1.17K
· petenicholls
Ca3dc3f93730afb41d6753d8bf010a38

Calculating truth table possibilities for testing in Ruby

The bottom line: use Array#repeated_permutation in Ruby 1.9, but a great write up all the same on how to test different combinations of predicate methods in RSpec.

http://vitobotta.com/applying-bitwise-operations-to-rspec-testing/

Say Thanks
Respond