Skip to content

Commit 079ead3

Browse files
committed
updates
1 parent e1bf993 commit 079ead3

File tree

7 files changed

+90
-105
lines changed

7 files changed

+90
-105
lines changed

test/parsebox/runtime/number.ts

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,48 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Integer')
55

6-
Test('Number', () => {
7-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ''), [])
8-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '01'), ['0', '1'])
9-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 01'), ['0', '1'])
10-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '01 '), ['0', '1 '])
11-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 01 '), ['0', '1 '])
12-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0'), ['0', ''])
13-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0 '), ['0', ' '])
14-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0'), ['0', ''])
15-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0 '), ['0', ' '])
16-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0'), ['-0', ''])
17-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0 '), ['-0', ' '])
18-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0'), ['-0', ''])
19-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0 '), ['-0', ' '])
20-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100'), ['100', ''])
21-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100 '), ['100', ' '])
22-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100'), ['100', ''])
23-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100 '), ['100', ' '])
24-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100'), ['-100', ''])
25-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100 '), ['-100', ' '])
26-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100'), ['-100', ''])
27-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100 '), ['-100', ' '])
28-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0.1'), ['0.1', ''])
29-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0.1 '), ['0.1', ' '])
30-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0.1'), ['0.1', ''])
31-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0.1 '), ['0.1', ' '])
32-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1'), ['100.1', ''])
33-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1 '), ['100.1', ' '])
34-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1'), ['100.1', ''])
35-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1 '), ['100.1', ' '])
36-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100.1'), ['-100.1', ''])
37-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100.1 '), ['-100.1', ' '])
38-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100.1'), ['-100.1', ''])
39-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100.1 '), ['-100.1', ' '])
40-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1.1'), ['100.1', '.1'])
41-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1.1 '), ['100.1', '.1 '])
42-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1.1'), ['100.1', '.1'])
43-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1.1 '), ['100.1', '.1 '])
44-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-.1'), ['-0.1', ''])
45-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-.1 '), ['-0.1', ' '])
46-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -.1'), ['-0.1', ''])
47-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -.1 '), ['-0.1', ' '])
48-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0.1'), ['-0.1', ''])
49-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0.1 '), ['-0.1', ' '])
50-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0.1'), ['-0.1', ''])
51-
Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0.1 '), ['-0.1', ' '])
52-
})
6+
Test('Should Number 1', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ''), []))
7+
Test('Should Number 2', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '01'), ['0', '1']))
8+
Test('Should Number 3', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 01'), ['0', '1']))
9+
Test('Should Number 4', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '01 '), ['0', '1 ']))
10+
Test('Should Number 5', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 01 '), ['0', '1 ']))
11+
Test('Should Number 6', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0'), ['0', '']))
12+
Test('Should Number 7', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0 '), ['0', ' ']))
13+
Test('Should Number 8', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0'), ['0', '']))
14+
Test('Should Number 9', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0 '), ['0', ' ']))
15+
Test('Should Number 10', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0'), ['-0', '']))
16+
Test('Should Number 11', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0 '), ['-0', ' ']))
17+
Test('Should Number 12', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0'), ['-0', '']))
18+
Test('Should Number 13', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0 '), ['-0', ' ']))
19+
Test('Should Number 14', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100'), ['100', '']))
20+
Test('Should Number 15', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100 '), ['100', ' ']))
21+
Test('Should Number 16', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100'), ['100', '']))
22+
Test('Should Number 17', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100 '), ['100', ' ']))
23+
Test('Should Number 18', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100'), ['-100', '']))
24+
Test('Should Number 19', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100 '), ['-100', ' ']))
25+
Test('Should Number 20', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100'), ['-100', '']))
26+
Test('Should Number 21', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100 '), ['-100', ' ']))
27+
Test('Should Number 22', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0.1'), ['0.1', '']))
28+
Test('Should Number 23', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '0.1 '), ['0.1', ' ']))
29+
Test('Should Number 24', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0.1'), ['0.1', '']))
30+
Test('Should Number 25', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 0.1 '), ['0.1', ' ']))
31+
Test('Should Number 26', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1'), ['100.1', '']))
32+
Test('Should Number 27', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1 '), ['100.1', ' ']))
33+
Test('Should Number 28', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1'), ['100.1', '']))
34+
Test('Should Number 29', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1 '), ['100.1', ' ']))
35+
Test('Should Number 30', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100.1'), ['-100.1', '']))
36+
Test('Should Number 31', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-100.1 '), ['-100.1', ' ']))
37+
Test('Should Number 32', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100.1'), ['-100.1', '']))
38+
Test('Should Number 33', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -100.1 '), ['-100.1', ' ']))
39+
Test('Should Number 34', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1.1'), ['100.1', '.1']))
40+
Test('Should Number 35', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '100.1.1 '), ['100.1', '.1 ']))
41+
Test('Should Number 36', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1.1'), ['100.1', '.1']))
42+
Test('Should Number 37', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' 100.1.1 '), ['100.1', '.1 ']))
43+
Test('Should Number 38', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-.1'), ['-0.1', '']))
44+
Test('Should Number 39', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-.1 '), ['-0.1', ' ']))
45+
Test('Should Number 40', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -.1'), ['-0.1', '']))
46+
Test('Should Number 41', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -.1 '), ['-0.1', ' ']))
47+
Test('Should Number 42', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0.1'), ['-0.1', '']))
48+
Test('Should Number 43', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), '-0.1 '), ['-0.1', ' ']))
49+
Test('Should Number 44', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0.1'), ['-0.1', '']))
50+
Test('Should Number 45', () => Assert.IsEqual(Runtime.Parse(Runtime.Number(), ' -0.1 '), ['-0.1', ' ']))

test/parsebox/runtime/optional.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Optional')
55

6-
Test('Optional', () => {
7-
Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), ''), [[], ''])
8-
Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'A'), [['A'], ''])
9-
Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'AA'), [['A'], 'A'])
10-
Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'B'), [[], 'B'])
11-
})
6+
Test('Should Optional 1', () => Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), ''), [[], '']))
7+
Test('Should Optional 2', () => Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'A'), [['A'], '']))
8+
Test('Should Optional 3', () => Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'AA'), [['A'], 'A']))
9+
Test('Should Optional 4', () => Assert.IsEqual(Runtime.Parse(Runtime.Optional(Runtime.Const('A')), 'B'), [[], 'B']))

test/parsebox/runtime/string.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.String')
55

6-
Test('String', () => {
7-
Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ''), [])
8-
Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), '"A"'), ['A', ''])
9-
Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ' "A"'), ['A', ''])
10-
Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), '"A" '), ['A', ' '])
11-
Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ' "A" '), ['A', ' '])
12-
})
6+
Test('Should String 1', () => Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ''), []))
7+
Test('Should String 2', () => Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), '"A"'), ['A', '']))
8+
Test('Should String 3', () => Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ' "A"'), ['A', '']))
9+
Test('Should String 4', () => Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), '"A" '), ['A', ' ']))
10+
Test('Should String 5', () => Assert.IsEqual(Runtime.Parse(Runtime.String([`'`, `"`]), ' "A" '), ['A', ' ']))

test/parsebox/runtime/tuple.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Tuple')
55

6-
Test('Tuple', () => {
7-
const Tuple = Runtime.Tuple([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')])
8-
Assert.IsEqual(Runtime.Parse(Tuple, ''), [])
9-
Assert.IsEqual(Runtime.Parse(Tuple, 'A'), [])
10-
Assert.IsEqual(Runtime.Parse(Tuple, 'A B C'), [['A', 'B', 'C'], ''])
11-
Assert.IsEqual(Runtime.Parse(Tuple, 'A B C '), [['A', 'B', 'C'], ' '])
12-
Assert.IsEqual(Runtime.Parse(Tuple, 'ABC'), [['A', 'B', 'C'], ''])
13-
Assert.IsEqual(Runtime.Parse(Tuple, ' ABC'), [['A', 'B', 'C'], ''])
14-
Assert.IsEqual(Runtime.Parse(Tuple, ' ABC '), [['A', 'B', 'C'], ' '])
15-
})
6+
const Tuple = Runtime.Tuple([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')])
7+
Test('Should Tuple 1', () => Assert.IsEqual(Runtime.Parse(Tuple, ''), []))
8+
Test('Should Tuple 2', () => Assert.IsEqual(Runtime.Parse(Tuple, 'A'), []))
9+
Test('Should Tuple 3', () => Assert.IsEqual(Runtime.Parse(Tuple, 'A B C'), [['A', 'B', 'C'], '']))
10+
Test('Should Tuple 4', () => Assert.IsEqual(Runtime.Parse(Tuple, 'A B C '), [['A', 'B', 'C'], ' ']))
11+
Test('Should Tuple 5', () => Assert.IsEqual(Runtime.Parse(Tuple, 'ABC'), [['A', 'B', 'C'], '']))
12+
Test('Should Tuple 6', () => Assert.IsEqual(Runtime.Parse(Tuple, ' ABC'), [['A', 'B', 'C'], '']))
13+
Test('Should Tuple 7', () => Assert.IsEqual(Runtime.Parse(Tuple, ' ABC '), [['A', 'B', 'C'], ' ']))

test/parsebox/runtime/union.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Union')
55

6-
Test('Union', () => {
7-
const Union = Runtime.Union([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')])
8-
Assert.IsEqual(Runtime.Parse(Union, ''), [])
9-
Assert.IsEqual(Runtime.Parse(Union, 'A B C'), ['A', ' B C'])
10-
Assert.IsEqual(Runtime.Parse(Union, 'A B C '), ['A', ' B C '])
11-
Assert.IsEqual(Runtime.Parse(Union, 'ABC'), ['A', 'BC'])
12-
Assert.IsEqual(Runtime.Parse(Union, ' ABC'), ['A', 'BC'])
13-
Assert.IsEqual(Runtime.Parse(Union, ' ABC '), ['A', 'BC '])
14-
Assert.IsEqual(Runtime.Parse(Union, 'B B C'), ['B', ' B C'])
15-
Assert.IsEqual(Runtime.Parse(Union, 'B B C '), ['B', ' B C '])
16-
Assert.IsEqual(Runtime.Parse(Union, 'BBC'), ['B', 'BC'])
17-
Assert.IsEqual(Runtime.Parse(Union, ' BBC'), ['B', 'BC'])
18-
Assert.IsEqual(Runtime.Parse(Union, ' BBC '), ['B', 'BC '])
19-
})
6+
const Union = Runtime.Union([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')])
7+
Test('Should Union 1', () => Assert.IsEqual(Runtime.Parse(Union, ''), []))
8+
Test('Should Union 2', () => Assert.IsEqual(Runtime.Parse(Union, 'A B C'), ['A', ' B C']))
9+
Test('Should Union 3', () => Assert.IsEqual(Runtime.Parse(Union, 'A B C '), ['A', ' B C ']))
10+
Test('Should Union 4', () => Assert.IsEqual(Runtime.Parse(Union, 'ABC'), ['A', 'BC']))
11+
Test('Should Union 5', () => Assert.IsEqual(Runtime.Parse(Union, ' ABC'), ['A', 'BC']))
12+
Test('Should Union 6', () => Assert.IsEqual(Runtime.Parse(Union, ' ABC '), ['A', 'BC ']))
13+
Test('Should Union 7', () => Assert.IsEqual(Runtime.Parse(Union, 'B B C'), ['B', ' B C']))
14+
Test('Should Union 8', () => Assert.IsEqual(Runtime.Parse(Union, 'B B C '), ['B', ' B C ']))
15+
Test('Should Union 9', () => Assert.IsEqual(Runtime.Parse(Union, 'BBC'), ['B', 'BC']))
16+
Test('Should Union 10', () => Assert.IsEqual(Runtime.Parse(Union, ' BBC'), ['B', 'BC']))
17+
Test('Should Union 11', () => Assert.IsEqual(Runtime.Parse(Union, ' BBC '), ['B', 'BC ']))

test/parsebox/runtime/until.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Until')
55

6-
Test('Until', () => {
7-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ''), [])
8-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), 'A'), ['', 'A'])
9-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ' A'), [' ', 'A'])
10-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ' A '), [' ', 'A '])
11-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ''), [])
12-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), 'BA'), ['', 'BA'])
13-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ' BA'), [' ', 'BA'])
14-
Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ' BA '), [' ', 'BA '])
15-
})
6+
Test('Should Until 1', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ''), []))
7+
Test('Should Until 2', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), 'A'), ['', 'A']))
8+
Test('Should Until 3', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ' A'), [' ', 'A']))
9+
Test('Should Until 4', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A']), ' A '), [' ', 'A ']))
10+
Test('Should Until 5', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ''), []))
11+
Test('Should Until 6', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), 'BA'), ['', 'BA']))
12+
Test('Should Until 7', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ' BA'), [' ', 'BA']))
13+
Test('Should Until 8', () => Assert.IsEqual(Runtime.Parse(Runtime.Until(['A', 'B']), ' BA '), [' ', 'BA ']))

test/parsebox/runtime/until_1.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import { Assert } from 'test'
33

44
const Test = Assert.Context('Runtime.Parse.Until_1')
55

6-
Test('Until_1', () => {
7-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ''), [])
8-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), 'A'), [])
9-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ' A'), [' ', 'A'])
10-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ' A '), [' ', 'A '])
11-
12-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ''), [])
13-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), 'BA'), [])
14-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ' BA'), [' ', 'BA'])
15-
Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ' BA '), [' ', 'BA '])
16-
})
6+
Test('Should Until_1 1', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ''), []))
7+
Test('Should Until_1 2', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), 'A'), []))
8+
Test('Should Until_1 3', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ' A'), [' ', 'A']))
9+
Test('Should Until_1 4', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A']), ' A '), [' ', 'A ']))
10+
Test('Should Until_1 5', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ''), []))
11+
Test('Should Until_1 6', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), 'BA'), []))
12+
Test('Should Until_1 7', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ' BA'), [' ', 'BA']))
13+
Test('Should Until_1 8', () => Assert.IsEqual(Runtime.Parse(Runtime.Until_1(['A', 'B']), ' BA '), [' ', 'BA ']))

0 commit comments

Comments
 (0)