Skip to content

Commit ac1abb6

Browse files
committed
updates
1 parent 079ead3 commit ac1abb6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/parsebox/runtime/~mapping.ts

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

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

6-
Test('Mapping', () => {
7-
const Mapping = (_0: 'A', _1: 'B', _2: 'C') => [_2, _1, _0] as const
8-
const Mapped = Runtime.Tuple([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')], (values) => Mapping(...values))
9-
Assert.IsEqual(Runtime.Parse(Mapped, ' A B C '), [['C', 'B', 'A'], ' '])
10-
})
6+
const Mapping = (_0: 'A', _1: 'B', _2: 'C') => [_2, _1, _0] as const
7+
const Mapped = Runtime.Tuple([Runtime.Const('A'), Runtime.Const('B'), Runtime.Const('C')], (values) => Mapping(...values))
8+
9+
Test('Should Mapping 1', () => Assert.IsEqual(Runtime.Parse(Mapped, ' A B C '), [['C', 'B', 'A'], ' ']))

0 commit comments

Comments
 (0)