Skip to content

Commit f87fae3

Browse files
committed
Updates
1 parent 510ef34 commit f87fae3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

test/__tests__/runtime/parse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ Deno.test('Const', () => {
2222
Assert(Runtime.Parse(Runtime.Const('A'), ' A '), ['A', ' '])
2323
})
2424
// ----------------------------------------------------------------
25+
// Until
26+
// ----------------------------------------------------------------
27+
Deno.test('Until', () => {
28+
Assert(Runtime.Parse(Runtime.Until('A'), ''), [])
29+
Assert(Runtime.Parse(Runtime.Until('A'), 'A'), ['', 'A'])
30+
Assert(Runtime.Parse(Runtime.Until('A'), ' A'), [' ', 'A'])
31+
Assert(Runtime.Parse(Runtime.Until('A'), ' A '), [' ', 'A '])
32+
})
33+
// ----------------------------------------------------------------
2534
// Ident
2635
// ----------------------------------------------------------------
2736
Deno.test('Ident', () => {

test/__tests__/static/parse.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ Assert<Static.Parse<Static.Const<'A'>, ''>, []>()
2121
Assert<Static.Parse<Static.Const<'A'>, 'A'>, ['A', '']>()
2222
Assert<Static.Parse<Static.Const<'A'>, ' A'>, ['A', '']>()
2323
Assert<Static.Parse<Static.Const<'A'>, ' A '>, ['A', ' ']>()
24-
24+
// ------------------------------------------------------------------
25+
// Until
26+
// ------------------------------------------------------------------
27+
Assert<Static.Parse<Static.Until<'A'>, ''>, []>()
28+
Assert<Static.Parse<Static.Until<'A'>, 'A'>, ['', 'A']>()
29+
Assert<Static.Parse<Static.Until<'A'>, ' A'>, [' ', 'A']>()
30+
Assert<Static.Parse<Static.Until<'A'>, ' A '>, [' ', 'A ']>()
2531
// ------------------------------------------------------------------
2632
// Ident
2733
// ------------------------------------------------------------------

0 commit comments

Comments
 (0)