"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const debug_1 = require("../../../debug");
const fromSpec_1 = require("../../../spec/fromSpec");
const _specs_1 = __importDefault(require("../../../system/_specs"));
const system_1 = require("../../util/system");
const spec = require('../../../system/core/control/IfNot/spec.json');
const IfNot = (0, fromSpec_1.fromSpec)(spec, _specs_1.default);
const ifNot = new IfNot(system_1.system);
false && (0, debug_1.watchUnitAndLog)(ifNot);
false && (0, debug_1.watchGraphAndLog)(ifNot);
ifNot.play();
ifNot.push('a', 1);
ifNot.push('b', true);
assert_1.default.equal(ifNot.take('a if not b'), undefined);
ifNot.push('a', 1);
ifNot.push('b', false);
assert_1.default.equal(ifNot.take('a if not b'), 1);
ifNot.setInputConstant('a', true);
ifNot.setInputConstant('b', true);
ifNot.push('a', 1);
ifNot.push('b', false);
assert_1.default.equal(ifNot.take('a if not b'), 1);
assert_1.default.equal(ifNot.take('a if not b'), 1);
assert_1.default.equal(ifNot.take('a if not b'), 1);
assert_1.default.equal(ifNot.take('a if not b'), 1);
assert_1.default.equal(ifNot.take('a if not b'), 1);
assert_1.default.equal(ifNot.take('a if not b'), 1);
//# sourceMappingURL=IfNot.js.map