(expected: Optional<string>, input: string[], offset: number)
| 7 | |
| 8 | UnitTest.test('api.PositionArray.get', () => { |
| 9 | const check = (expected: Optional<string>, input: string[], offset: number) => { |
| 10 | const parray = Parrays.make(input); |
| 11 | const actual = PositionArray.get(parray, offset); |
| 12 | KAssert.eqOptional('eq', expected, actual.map((x) => x.item)); |
| 13 | }; |
| 14 | |
| 15 | check(Optional.none(), [], 0); |
| 16 | check(Optional.some('a'), [ 'a' ], 0); |
no test coverage detected
searching dependent graphs…