mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-31 00:34:25 -04:00
add a non-probabilistic test for the ? operator
This really just tests that the ? operator faithfully gets represented as degradeBy(0.5)
This commit is contained in:
@@ -50,4 +50,9 @@ describe('mini', () => {
|
||||
it('supports euclidean rhythms', () => {
|
||||
assert.deepStrictEqual(minS('a(3, 8)'), ['a: 0 - 1/8', 'a: 3/8 - 1/2', 'a: 3/4 - 7/8']);
|
||||
});
|
||||
it('supports the ? operator', () => {
|
||||
assert.deepStrictEqual(
|
||||
mini('a?').queryArc(0, 20).map(hap => hap.whole.begin),
|
||||
mini('a').degradeBy(0.5).queryArc(0, 20).map(hap => hap.whole.begin));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user