Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = new TestHarness;
- t.test_expect_prop = function() {
- with(this) {
- ok(true, "foo")
- }
- }
- t.test_expect_prop.expect = 6;
- t.test_die = function() {
- throw new Error("foo\nbar");
- }
- t.test_noplan = function() {
- this.ok("no plan");
- this.same(1,new Number("1"), "numbers are the same");
- }
- t.test_gt_ten = function () {
- this.expect(12);
- [this.ok(1, i) for (i in Util.Range(0,12) )];
- }
- t.test_gt = function() {
- this.expect(1);
- this.ok();
- this.ok();
- this.ok();
- }
- t.go();
Add Comment
Please, Sign In to add comment