Skip to content
This repository was archived by the owner on Jun 9, 2019. It is now read-only.

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohayonao committed Apr 29, 2013
1 parent 3debace commit f70062f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 0 additions & 8 deletions test/arraywrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,4 @@ describe("ArrayWrapper", function() {
it("new", function() {
assert.equal(T([]).toString(), "ArrayWrapper");
});
it("fixed control-rate", function() {
var t = T([]);
assert.isTrue(t.isKr );
assert.isFalse(t.isAr);
t.ar();
assert.isTrue(t.isKr );
assert.isFalse(t.isAr);
});
});
10 changes: 5 additions & 5 deletions test/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ describe('T("schedule")', function() {

t.sched(10, t1);
assert.deepEqual(t.queue,
[ [10, t1] ]);
[ [10, t1, undefined] ]);

t.sched(30, t3);
t.sched(30, t3, 100);
assert.deepEqual(t.queue,
[ [10, t1], [30, t3] ]);
t.sched(20, t2);
[ [10, t1, undefined], [30, t3, 100] ]);
t.sched(20, t2, 200);
assert.deepEqual(t.queue,
[ [10, t1], [20, t2], [30, t3] ]);
[ [10, t1, undefined], [20, t2, 200], [30, t3, 100] ]);
});
it("clear()", function() {
var t = T("schedule");
Expand Down

0 comments on commit f70062f

Please sign in to comment.