mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
fix test typing
This commit is contained in:
parent
279f770e28
commit
8ddb17202b
@ -3,13 +3,21 @@ import { compareSequences } from './util';
|
|||||||
describe('compareSequences', () => {
|
describe('compareSequences', () => {
|
||||||
it('matches at pos 0', () => {
|
it('matches at pos 0', () => {
|
||||||
expect(
|
expect(
|
||||||
compareSequences([0x01, 0x02, 0x03], [0x01, 0x02, 0x03], 0)
|
compareSequences(
|
||||||
|
new Uint8Array([0x01, 0x02, 0x03]),
|
||||||
|
[0x01, 0x02, 0x03],
|
||||||
|
0
|
||||||
|
)
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('matches at pos 1', () => {
|
it('matches at pos 1', () => {
|
||||||
expect(
|
expect(
|
||||||
compareSequences([0x00, 0x01, 0x02, 0x03], [0x01, 0x02, 0x03], 1)
|
compareSequences(
|
||||||
|
new Uint8Array([0x00, 0x01, 0x02, 0x03]),
|
||||||
|
[0x01, 0x02, 0x03],
|
||||||
|
1
|
||||||
|
)
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user