enable do expression tests

This commit is contained in:
Sebastian McKenzie 2015-07-04 21:51:57 +02:00
parent 0e4bb5ee3f
commit cda2bfce38
15 changed files with 11 additions and 6 deletions

View File

@ -1 +0,0 @@
assert.ok(false);

View File

@ -1,3 +0,0 @@
assert.equal(do {
do { "foo" };
}, "foo");

View File

@ -1 +0,0 @@
assert.ok(false);

View File

@ -0,0 +1,5 @@
assert.equal(do {
var i = 5;
do { i--; } while(i > 3);
i;
}, 3);

View File

@ -2,4 +2,4 @@ assert.equal(do {
for (var i = 0; i < 5; i++) {
i;
}
}, 5);
}, 4);

View File

@ -0,0 +1,5 @@
assert.equal(do {
var i = 5;
while (i > 3) i--;
i;
}, 3);