-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import Debug "mo:base/Debug"; | ||
import {suite; test} "../src/async"; | ||
|
||
await suite("async suite", func(): async () { | ||
await test("async test", func(): async () { | ||
await suite("async suite", func() : async () { | ||
await test("async test", func() : async () { | ||
assert true; | ||
}); | ||
|
||
await test("async test", func(): async () { | ||
await test("async test", func() : async () { | ||
assert true; | ||
}); | ||
}); | ||
|
||
await test("sole async test", func(): async () { | ||
await test("sole async test", func() : async () { | ||
assert true; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Debug "mo:base/Debug"; | ||
import {test; testsys} "../src/async"; | ||
|
||
func sys<system>() {}; | ||
|
||
await test("test", func() : async () { | ||
assert true; | ||
}); | ||
|
||
testsys<system>("test 1", func<system>() : async() { | ||
await testsys<system>("test 1.1", func<system>() : async() { | ||
sys<system>(); | ||
}); | ||
|
||
await testsys<system>("test 1.2", func<system>() : async() { | ||
sys<system>(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Debug "mo:base/Debug"; | ||
import {test; testsys} "../src"; | ||
|
||
func sys<system>() {}; | ||
|
||
test("test", func() { | ||
assert true; | ||
}); | ||
|
||
testsys<system>("test 1", func<system>() { | ||
testsys<system>("test 1.1", func<system>() { | ||
sys<system>(); | ||
}); | ||
|
||
testsys<system>("test 1.2", func<system>() { | ||
sys<system>(); | ||
}); | ||
}); |