MCPcopy
hub / github.com/meteor/meteor / equalBitFormulas

Function equalBitFormulas

packages/logic-solver/logic_tests.js:650–657  ·  view source on GitHub ↗
(test, bits1, bits2)

Source from the content-addressed store, hash-verified

648});
649
650var 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
659Tinytest.add("logic-solver - Logic.constantBits", function (test) {
660 equalBitFormulas(test, Logic.constantBits(0), new Logic.Bits([]));

Callers 1

logic_tests.jsFile · 0.85

Calls 2

isTrueMethod · 0.80
equalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…