"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../debug");
const fromSpec_1 = require("../../../spec/fromSpec");
const _specs_1 = require("../../../system/_specs");
const system_1 = require("../../util/system");
const spec = require('../../../system/core/common/TrueOrFalse/spec.json');
const TrueOrFalse = (0, fromSpec_1.fromSpec)(spec, _specs_1.default, {});
const trueOrFalse = new TrueOrFalse(system_1.system);
false && (0, debug_1.watchUnitAndLog)(trueOrFalse);
false && (0, debug_1.watchGraphAndLog)(trueOrFalse);
trueOrFalse.play();
trueOrFalse.push('a', true);
assert.equal(trueOrFalse.take('a = true'), true);
assert.equal(trueOrFalse.take('a = false'), undefined);
trueOrFalse.push('a', false);
assert.equal(trueOrFalse.take('a = true'), undefined);
assert.equal(trueOrFalse.take('a = false'), true);
exports.default = null;
//# sourceMappingURL=TrueOrFalse.js.map