diff options
Diffstat (limited to 'examples/test-runner.ts')
| -rw-r--r-- | examples/test-runner.ts | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/examples/test-runner.ts b/examples/test-runner.ts index 081dede..7dc1966 100644 --- a/examples/test-runner.ts +++ b/examples/test-runner.ts @@ -4,37 +4,37 @@ import { SetEvalEnvironment } from '../stdlib/sys' import { Test, Assert } from '../stdlib/test' import { Equals, Not } from '../stdlib/util' -type testSomeStuff = Do<[ - PutStringLn<"Some Stuff">, +type testSomeStuff = Do< + [ + PutStringLn<'Some Stuff'>, - Test<"should do some stuff", [ - Assert<Equals<1, 1>>, - Assert<Not<Equals<2, 1>>>, - ]>, + Test< + 'should do some stuff', + [Assert<Equals<1, 1>>, Assert<Not<Equals<2, 1>>>] + >, - Test<"bing bong, bing bing bong", [ - Assert<Equals<1, 1>>, - ]>, -]> + Test<'bing bong, bing bing bong', [Assert<Equals<1, 1>>]> + ] +> -type testSomeMoreStuff = Do<[ - PutStringLn<"Other stuff?">, +type testSomeMoreStuff = Do< + [ + PutStringLn<'Other stuff?'>, - Test<"should do some other stuff", [ - Assert<Equals<[1, 2, 3], [1, 2, 3]>>, - ]>, + Test<'should do some other stuff', [Assert<Equals<[1, 2, 3], [1, 2, 3]>>]> - // Test<"this'll fail fo sho", [ - // Assert<Equals<[1, 2, 3], [4, 5, 6]>>, - // ]>, -]> + // Test<"this'll fail fo sho", [ + // Assert<Equals<[1, 2, 3], [4, 5, 6]>>, + // ]>, + ] +> export type main = [ // Update env to node with test helpers SetEvalEnvironment<'test.node'>, - PutStringLn<"=== Running tests... ===\n">, + PutStringLn<'=== Running tests... ===\n'>, testSomeStuff, - testSomeMoreStuff, + testSomeMoreStuff ] |
