From 47717e872b87f497990d7c1d6c3d54bfb96f2003 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 22 Apr 2022 17:06:15 +0100 Subject: [PATCH] test for negative time, ref #85 --- packages/core/test/pattern.test.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/test/pattern.test.mjs b/packages/core/test/pattern.test.mjs index 06bd2b34..1c60766a 100644 --- a/packages/core/test/pattern.test.mjs +++ b/packages/core/test/pattern.test.mjs @@ -374,6 +374,15 @@ describe('Pattern', function () { ); }); }); + describe('fastcat()', function () { + it('Can go into negative time', function () { + sameFirst( + fastcat('a','b','c') + .late(1000000), + fastcat('a','b','c'), + ); + }); + }); describe('slowcat()', function () { it('Can concatenate things slowly', function () { assert.deepStrictEqual(