mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-21 18:48:36 +00:00
test silence
This commit is contained in:
parent
a0d6fc47e0
commit
58a936cf33
@ -1,4 +1,4 @@
|
|||||||
import { fastcat, stack, slowcat } from '../pattern.mjs';
|
import { fastcat, stack, slowcat, silence } from '../pattern.mjs';
|
||||||
import { strict as assert } from 'assert';
|
import { strict as assert } from 'assert';
|
||||||
import drawLine from '../drawLine.mjs';
|
import drawLine from '../drawLine.mjs';
|
||||||
|
|
||||||
@ -13,6 +13,9 @@ describe('drawLine', () => {
|
|||||||
assert.equal(drawLine(fastcat(0, [1, 2, 3]), 10), '|0--123|0--123');
|
assert.equal(drawLine(fastcat(0, [1, 2, 3]), 10), '|0--123|0--123');
|
||||||
assert.equal(drawLine(fastcat(0, 1, [2, 3]), 10), '|0-1-23|0-1-23');
|
assert.equal(drawLine(fastcat(0, 1, [2, 3]), 10), '|0-1-23|0-1-23');
|
||||||
});
|
});
|
||||||
|
it('supports unequal silence', () => {
|
||||||
|
assert.equal(drawLine(fastcat(0, silence, [1, 2]), 10), '|0-..12|0-..12');
|
||||||
|
});
|
||||||
it('supports multiple lines', () => {
|
it('supports multiple lines', () => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
drawLine(fastcat(0, stack(1, 2)), 10),
|
drawLine(fastcat(0, stack(1, 2)), 10),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user