get tests working
This commit is contained in:
parent
40f2355fbf
commit
615d441381
5 changed files with 8215 additions and 28 deletions
23
test/pattern.test.mjs
Normal file
23
test/pattern.test.mjs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
import 'fraction.js';
|
||||
|
||||
import { strict as assert } from 'assert';
|
||||
|
||||
import {TimeSpan, Hap} from "../js/strudel.mjs";
|
||||
|
||||
describe('TimeSpan', function() {
|
||||
describe('equal()', function() {
|
||||
it('Should be equal to the same value', function() {
|
||||
assert.equal((new TimeSpan(0,4)).equals(new TimeSpan(0,4)), true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Hap', function() {
|
||||
describe('has_onset()', function() {
|
||||
it('True if part includes onset from whole', function() {
|
||||
assert.equal(new Hap(new TimeSpan(0,1), new TimeSpan(0,1), "thing").has_onset(), true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue