"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 Memory_1 = __importDefault(require("../../../../system/f/control/Memory"));
const system_1 = require("../../../util/system");
const memory = new Memory_1.default(system_1.system);
memory.play();
false && (0, debug_1.watchUnitAndLog)(memory);
memory.push('a', 0);
assert_1.default.equal(memory.peakInput('a'), undefined);
assert_1.default.equal(memory.take('a'), 0);
assert_1.default.equal(memory.take('a'), undefined);
memory.push('a', 1);
assert_1.default.equal(memory.peakInput('a'), undefined);
assert_1.default.equal(memory.take('a'), 1);
assert_1.default.equal(memory.take('a'), undefined);
// infinite loop
// memory.setInputConstant('a', true)
// memory.push('a', 2)
//# sourceMappingURL=Memory.js.map