"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/HasLength/spec.json');
const HasLength = (0, fromSpec_1.fromSpec)(spec, _specs_1.default, {});
const hasLength = new HasLength(system_1.system);
false && (0, debug_1.watchUnitAndLog)(hasLength);
false && (0, debug_1.watchGraphAndLog)(hasLength);
hasLength.play();
hasLength.push('a', []);
hasLength.push('b', 0);
assert.deepEqual(hasLength.take('true'), []);
assert.deepEqual(hasLength.take('true'), undefined);
assert.deepEqual(hasLength.take('false'), undefined);
hasLength.push('a', [1, 2, 3]);
hasLength.push('b', 3);
assert.deepEqual(hasLength.take('true'), [1, 2, 3]);
assert.deepEqual(hasLength.take('false'), undefined);
//# sourceMappingURL=HasLength.js.map