mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
12 lines
405 B
JavaScript
12 lines
405 B
JavaScript
import { fastcat } from '../pattern.mjs';
|
|
import { strict as assert } from 'assert';
|
|
import drawLine from '../drawLine.mjs';
|
|
|
|
describe('drawLine', () => {
|
|
it('should work', () => {
|
|
assert.equal(drawLine(fastcat(0, [1, 2]), 10), '|0-12|0-12');
|
|
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');
|
|
});
|
|
});
|