(test, bits1, bits2)
| 648 | }); |
| 649 | |
| 650 | var equalBitFormulas = function (test, bits1, bits2) { |
| 651 | test.isTrue(bits1 instanceof Logic.Bits); |
| 652 | test.isTrue(bits2 instanceof Logic.Bits); |
| 653 | // the elements of bits1 and bits2 will have to be |
| 654 | // terms (or the same Formula objects) for this to |
| 655 | // compare by value |
| 656 | test.equal(bits1.bits, bits2.bits); |
| 657 | }; |
| 658 | |
| 659 | Tinytest.add("logic-solver - Logic.constantBits", function (test) { |
| 660 | equalBitFormulas(test, Logic.constantBits(0), new Logic.Bits([])); |
no test coverage detected
searching dependent graphs…