Skip to content

Commit

Permalink
Fix most of the tests not running at all (closes #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetrich committed Oct 19, 2019
1 parent eee9c36 commit 2df5d29
Show file tree
Hide file tree
Showing 197 changed files with 197 additions and 197 deletions.
2 changes: 1 addition & 1 deletion tests/Array rest spreading/case-value.js
@@ -1 +1 @@
async f => expect((await f(() => ["foo", "bar", "baz"]))).toEqual(["bar", "baz"])
expect((await f(() => ["foo", "bar", "baz"]))).toEqual(["bar", "baz"]);
2 changes: 1 addition & 1 deletion tests/Array spreading/case-value.js
@@ -1 +1 @@
async f => expect((await f(() => ["baz"]))).toBe("baz")
expect((await f(() => ["baz"]))).toBe("baz");
2 changes: 1 addition & 1 deletion tests/Complex continuation ordering/case-result.js
@@ -1 +1 @@
async f => expect((await f())).toEqual(['start 1', 'start 2', 'wait 2', 'start 3', 'wait 3', 'stop 1', 'wait 3', 'stop 2', 'stop 3'])
expect((await f())).toEqual(['start 1', 'start 2', 'wait 2', 'start 3', 'wait 3', 'stop 1', 'wait 3', 'stop 2', 'stop 3']);
2 changes: 1 addition & 1 deletion tests/Object spreading/case-value.js
@@ -1 +1 @@
async f => expect((await f(() => ({ bar: "baz" })))).toBe("baz")
expect((await f(() => ({ bar: "baz" })))).toBe("baz");
2 changes: 1 addition & 1 deletion tests/argument evaluation order/case-result.js
@@ -1 +1 @@
async f => expect((await f(async (a, b, c) => a + b + c, () => 1, async _ => 2))).toBe(5)
expect((await f(async (a, b, c) => a + b + c, () => 1, async _ => 2))).toBe(5);
2 changes: 1 addition & 1 deletion tests/arguments expression/case-none.js
@@ -1 +1 @@
async f => expect((await f())).toBe(false)
expect((await f())).toBe(false);
2 changes: 1 addition & 1 deletion tests/arguments expression/case-one.js
@@ -1 +1 @@
async f => expect((await f(async () => true))).toBe(true)
expect((await f(async () => true))).toBe(true);
2 changes: 1 addition & 1 deletion tests/arguments expression/case-two.js
@@ -1 +1 @@
async f => expect((await f(async () => false, async () => true))).toBe(true)
expect((await f(async () => false, async () => true))).toBe(true);
2 changes: 1 addition & 1 deletion tests/arrow functions/case-false.js
@@ -1 +1 @@
async f => expect((await f(false))).toBe(false)
expect((await f(false))).toBe(false);
2 changes: 1 addition & 1 deletion tests/arrow functions/case-true.js
@@ -1 +1 @@
async f => expect((await f(true))).toBe(true)
expect((await f(true))).toBe(true);
2 changes: 1 addition & 1 deletion tests/assign to pattern/case-result.js
@@ -1 +1 @@
async f => expect((await f(async _ => ({ result: 4 })))).toBe(5)
expect((await f(async _ => ({ result: 4 })))).toBe(5);
2 changes: 1 addition & 1 deletion tests/assign to variable/case-result.js
@@ -1 +1 @@
async f => expect((await f(async _ => 4))).toBe(5)
expect((await f(async _ => 4))).toBe(5);
2 changes: 1 addition & 1 deletion tests/async await with variable/case-result.js
@@ -1 +1 @@
async f => expect((await f())).toBe(true)
expect((await f())).toBe(true);
2 changes: 1 addition & 1 deletion tests/async await/case-result.js
@@ -1 +1 @@
async f => expect((await f())).toBe(true)
expect((await f())).toBe(true);
2 changes: 1 addition & 1 deletion tests/async iteration with break/case-exit.js
@@ -1 +1 @@
async f => expect((await f(10))).toBe(-1)
expect((await f(10))).toBe(-1);
2 changes: 1 addition & 1 deletion tests/async iteration with break/case-long.js
@@ -1 +1 @@
async f => expect((await f([3]))).toBe(3)
expect((await f([3]))).toBe(3);
2 changes: 1 addition & 1 deletion tests/async iteration with break/case-short.js
@@ -1 +1 @@
async f => expect((await f(1))).toBe(0)
expect((await f(1))).toBe(0);
2 changes: 1 addition & 1 deletion tests/async iteration with try catch/case-exit.js
@@ -1 +1 @@
async f => expect((await f(10))).toBe(-1)
expect((await f(10))).toBe(-1);
2 changes: 1 addition & 1 deletion tests/async iteration with try catch/case-long.js
@@ -1 +1 @@
async f => expect((await f([3]))).toBe(3)
expect((await f([3]))).toBe(3);
2 changes: 1 addition & 1 deletion tests/async iteration with try catch/case-short.js
@@ -1 +1 @@
async f => expect((await f(1))).toBe(0)
expect((await f(1))).toBe(0)
2 changes: 1 addition & 1 deletion tests/async iteration/case-empty.js
@@ -1 +1 @@
async f => expect((await f(0))).toBe(0)
expect((await f(0))).toBe(0)
2 changes: 1 addition & 1 deletion tests/async iteration/case-multiple.js
@@ -1 +1 @@
async f => expect((await f(2))).toBe(1)
expect((await f(2))).toBe(1)
2 changes: 1 addition & 1 deletion tests/async iteration/case-single.js
@@ -1 +1 @@
async f => expect((await f([1]))).toBe(0)
expect((await f([1]))).toBe(0);
2 changes: 1 addition & 1 deletion tests/await binary and logical/case-seven.js
@@ -1 +1 @@
async f => expect((await f(async _ => 0, async _ => true, async _ => 2))).toBe(0)
expect((await f(async _ => 0, async _ => true, async _ => 2))).toBe(0);
2 changes: 1 addition & 1 deletion tests/await binary and logical/case-two.js
@@ -1 +1 @@
async f => expect((await f(async _ => 3, async _ => false, async _ => 5))).toBe(5)
expect((await f(async _ => 3, async _ => false, async _ => 5))).toBe(5)
2 changes: 1 addition & 1 deletion tests/await binary both/case-seven.js
@@ -1 +1 @@
async f => expect((await f(async _ => 5, async _ => 2))).toBe(7)
expect((await f(async _ => 5, async _ => 2))).toBe(7)
2 changes: 1 addition & 1 deletion tests/await binary both/case-two.js
@@ -1 +1 @@
async f => expect((await f(async _ => 0, async _ => 2))).toBe(2)
expect((await f(async _ => 0, async _ => 2))).toBe(2);
2 changes: 1 addition & 1 deletion tests/await binary left/case-seven.js
@@ -1 +1 @@
async f => expect((await f(async _ => 5, _ => 2))).toBe(7)
expect((await f(async _ => 5, _ => 2))).toBe(7)
2 changes: 1 addition & 1 deletion tests/await binary left/case-two.js
@@ -1 +1 @@
async f => expect((await f(async _ => 0, _ => 2))).toBe(2)
expect((await f(async _ => 0, _ => 2))).toBe(2);
2 changes: 1 addition & 1 deletion tests/await binary right/case-seven.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(7)
expect((await f(_ => 5, async _ => 2))).toBe(7)
2 changes: 1 addition & 1 deletion tests/await binary right/case-two.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(2)
expect((await f(_ => 0, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await binary statement scope/case-seven.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(7)
expect((await f(_ => 5, async _ => 2))).toBe(7)
2 changes: 1 addition & 1 deletion tests/await binary statement scope/case-two.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(2)
expect((await f(_ => 0, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical both/case-false.js
@@ -1 +1 @@
async f => expect((await f(async _ => 0, async _ => 2))).toBe(0)
expect((await f(async _ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical both/case-true.js
@@ -1 +1 @@
async f => expect((await f(async _ => 5, async _ => 2))).toBe(2)
expect((await f(async _ => 5, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical complex left/case-false.js
@@ -1 +1 @@
async f => expect((await f(async _ => -1, _ => 2))).toBe(0)
expect((await f(async _ => -1, _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical complex left/case-true.js
@@ -1 +1 @@
async f => expect((await f(async _ => 5, _ => 2))).toBe(2)
expect((await f(async _ => 5, _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical complex right/case-false.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical complex right/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(3)
expect((await f(_ => 5, async _ => 2))).toBe(3)
2 changes: 1 addition & 1 deletion tests/await logical left/case-false.js
@@ -1 +1 @@
async f => expect((await f(async _ => 0, _ => 2))).toBe(0)
expect((await f(async _ => 0, _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical left/case-true.js
@@ -1 +1 @@
async f => expect((await f(async _ => 5, _ => 2))).toBe(2)
expect((await f(async _ => 5, _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical right optimized/case-false.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical right optimized/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(2)
expect((await f(_ => 5, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical right/case-false.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical right/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(2)
expect((await f(_ => 5, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical statement if/case-false.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical statement if/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(2)
expect((await f(_ => 5, async _ => 2))).toBe(2)
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical statement scope optimized/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(2)
expect((await f(_ => 5, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/await logical statement scope/case-false.js
@@ -1 +1 @@
async f => expect((await f(_ => 0, async _ => 2))).toBe(0)
expect((await f(_ => 0, async _ => 2))).toBe(0)
2 changes: 1 addition & 1 deletion tests/await logical statement scope/case-true.js
@@ -1 +1 @@
async f => expect((await f(_ => 5, async _ => 2))).toBe(2)
expect((await f(_ => 5, async _ => 2))).toBe(2)
2 changes: 1 addition & 1 deletion tests/basic async/case-result.js
@@ -1 +1 @@
async f => expect((await f())).toBe(true)
expect((await f())).toBe(true)
2 changes: 1 addition & 1 deletion tests/break labeled statement/case-false.js
@@ -1 +1 @@
async f => expect((await f(() => 0))).toEqual(false)
expect((await f(() => 0))).toEqual(false)
2 changes: 1 addition & 1 deletion tests/break labeled statement/case-true.js
@@ -1 +1 @@
async f => expect((await f(() => 1))).toEqual(true)
expect((await f(() => 1))).toEqual(true)
2 changes: 1 addition & 1 deletion tests/break with multiple labeled statements/case-false.js
@@ -1 +1 @@
async f => expect((await f(() => 0))).toEqual(false)
expect((await f(() => 0))).toEqual(false)
2 changes: 1 addition & 1 deletion tests/break with multiple labeled statements/case-true.js
@@ -1 +1 @@
async f => expect((await f(() => 1))).toEqual(true)
expect((await f(() => 1))).toEqual(true)
2 changes: 1 addition & 1 deletion tests/call chains/case-result.js
@@ -1 +1 @@
async f => expect((await f((b, c) => b + c, async _ => 2, async _ => 3))).toBe(5)
expect((await f((b, c) => b + c, async _ => 2, async _ => 3))).toBe(5)
2 changes: 1 addition & 1 deletion tests/call member expression/case-result.js
@@ -1 +1 @@
async f => expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1)
expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1)
2 changes: 1 addition & 1 deletion tests/call non-pure member expression/case-result.js
@@ -1 +1 @@
async f => expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1)
expect((await f({ bar: value => value }, Promise.resolve(1)))).toBe(1)
2 changes: 1 addition & 1 deletion tests/calling member functions directly/case-normal.js
@@ -1 +1 @@
async f => expect((await f(async _ => true, { baz: arg => arg }))).toBe(true)
expect((await f(async _ => true, { baz: arg => arg }))).toBe(true)
@@ -1 +1 @@
async f => expect((await f(async _ => true, { baz: arg => arg }, "baz"))).toBe(true)
expect((await f(async _ => true, { baz: arg => arg }, "baz"))).toBe(true)
@@ -1 +1 @@
async f => expect((await f(async _ => true, { baz: arg => arg }))).toBe(true)
expect((await f(async _ => true, { baz: arg => arg }))).toBe(true)
2 changes: 1 addition & 1 deletion tests/catch and await/case-fallback.js
@@ -1,3 +1,3 @@
async f => expect((await f(async _ => {
expect((await f(async _ => {
throw "test";
}, async _ => false))).toBe(undefined)
2 changes: 1 addition & 1 deletion tests/catch and await/case-success.js
@@ -1 +1 @@
async f => expect((await f(async _ => "success", async _ => false))).toBe("success")
expect((await f(async _ => "success", async _ => false))).toBe("success")
2 changes: 1 addition & 1 deletion tests/catch and ignore/case-fallback.js
@@ -1,3 +1,3 @@
async f => expect((await f(async _ => {
expect((await f(async _ => {
throw "test";
}))).toBe(undefined)
2 changes: 1 addition & 1 deletion tests/catch and ignore/case-success.js
@@ -1 +1 @@
async f => expect((await f(async _ => "success"))).toBe("success")
expect((await f(async _ => "success"))).toBe("success")
@@ -1,3 +1,3 @@
async f => expect((await f(_ => {
expect((await f(_ => {
throw "test";
}, () => "fallback"))).toBe("fallback")
@@ -1 +1 @@
async f => expect((await f(_ => "success"))).toBe("success")
expect((await f(_ => "success"))).toBe("success")
2 changes: 1 addition & 1 deletion tests/catch and recover via return/case-fallback.js
@@ -1,3 +1,3 @@
async f => expect((await f(async _ => {
expect((await f(async _ => {
throw "test";
}))).toBe("fallback")
2 changes: 1 addition & 1 deletion tests/catch and recover via return/case-success.js
@@ -1 +1 @@
async f => expect((await f(async _ => "success"))).toBe("success")
expect((await f(async _ => "success"))).toBe("success")
2 changes: 1 addition & 1 deletion tests/catch and recover via variable/case-recover.js
@@ -1,3 +1,3 @@
async f => expect((await f(async _ => {
expect((await f(async _ => {
throw "test";
}, async _ => false))).toBe("an error")
2 changes: 1 addition & 1 deletion tests/catch and recover via variable/case-success.js
@@ -1 +1 @@
async f => expect((await f(async _ => "success", async _ => false))).toBe("success")
expect((await f(async _ => "success", async _ => false))).toBe("success")
2 changes: 1 addition & 1 deletion tests/class methods/case-class method.js
@@ -1 +1 @@
async f => expect((await f().bar(async () => true))).toBe(true)
expect((await f().bar(async () => true))).toBe(true)
2 changes: 1 addition & 1 deletion tests/class methods/case-method.js
@@ -1 +1 @@
async f => expect((await new (f())().foo(async () => true))).toBe(true)
expect((await new (f())().foo(async () => true))).toBe(true)
2 changes: 1 addition & 1 deletion tests/complex hoisting/case-alternate.js
@@ -1 +1 @@
async f => expect((await f(_ => false, async _ => 0))).toBe(0)
expect((await f(_ => false, async _ => 0))).toBe(0)
2 changes: 1 addition & 1 deletion tests/complex hoisting/case-consequent.js
@@ -1 +1 @@
async f => expect((await f(_ => true, async _ => 0))).toBe(1)
expect((await f(_ => true, async _ => 0))).toBe(1)
@@ -1 +1 @@
async f => expect((await f(() => 1, async _ => 2))).toBe(6)
expect((await f(() => 1, async _ => 2))).toBe(6)
@@ -1 +1 @@
async f => expect((await f(async _ => 2))).toBe(6)
expect((await f(async _ => 2))).toBe(6)
2 changes: 1 addition & 1 deletion tests/compound variable declarator/case-result.js
@@ -1 +1 @@
async f => expect((await f(() => 1, async _ => 2))).toBe(6)
expect((await f(() => 1, async _ => 2))).toBe(6)
@@ -1,4 +1,4 @@
async f => {
{
const result = f();
expect(result.constructor).toBe(Promise);
expect((await result)).toBe(undefined);
Expand Down
2 changes: 1 addition & 1 deletion tests/empty function/case-result.js
@@ -1,4 +1,4 @@
async f => {
{
const result = f();
expect(result.constructor).toBe(Promise);
expect((await result)).toBe(undefined);
Expand Down
2 changes: 1 addition & 1 deletion tests/finally double/case-recover.js
@@ -1,3 +1,3 @@
async f => expect((await f(async _ => {
expect((await f(async _ => {
throw "test";
}, _ => undefined))).toBe("suppressed")

0 comments on commit 2df5d29

Please sign in to comment.