"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../../debug");
const Substr_1 = require("../../../../system/f/string/Substr");
const system_1 = require("../../../util/system");
const substr = new Substr_1.default(system_1.system);
substr.play();
false && (0, debug_1.watchUnitAndLog)(substr);
substr.push('a', 'foobar');
substr.push('from', 3);
substr.push('length', 3);
assert.equal(substr.take('a'), 'bar');
substr.push('a', 'foobar');
substr.push('from', 0);
substr.push('length', 3);
assert.equal(substr.take('a'), 'foo');
//# sourceMappingURL=Substr.js.map