Skip to content

Commit 75a216b

Browse files
makrsmarkCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent d52be0a commit 75a216b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/IcaoDecoder.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('IcaoDecoder', () => {
8181
});
8282

8383
// Germany
84-
it('should match 3e8000-3ebfff', () => {
84+
it('should match 3ea000-3ebfff', () => {
8585
expect(new IcaoDecoder('3ea000').isMilitary()).toBe(true);
8686
expect(new IcaoDecoder('3ebfff').isMilitary()).toBe(true);
8787
});
@@ -240,12 +240,14 @@ describe('IcaoDecoder', () => {
240240
expect(new IcaoDecoder('7c8300').isMilitary()).toBe(true);
241241
expect(new IcaoDecoder('7c83ff').isMilitary()).toBe(true);
242242
});
243-
it('should match 7c8400 and not 7c87ff', () => {
243+
it('should match 7c8400-7c87fe and not 7c87ff', () => {
244244
expect(new IcaoDecoder('7c8400').isMilitary()).toBe(true);
245+
expect(new IcaoDecoder('7c87fe').isMilitary()).toBe(true);
245246
expect(new IcaoDecoder('7c87ff').isMilitary()).toBe(false);
246247
});
247-
it('should match 7c8800 and not 7c8fff', () => {
248+
it('should match 7c8800-7c8ffe and not 7c8fff', () => {
248249
expect(new IcaoDecoder('7c8800').isMilitary()).toBe(true);
250+
expect(new IcaoDecoder('7c8ffe').isMilitary()).toBe(true);
249251
expect(new IcaoDecoder('7c8fff').isMilitary()).toBe(false);
250252
});
251253
it('should match 7c9000-7c9fff', () => {

lib/IcaoDecoder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export class IcaoDecoder {
4141
[0x7c8240, 0x7c827f], // Australia 3
4242
[0x7c8280, 0x7c82ff], // Australia 4
4343
[0x7c8300, 0x7c83ff], // Australia 5
44-
[0x7c8400, 0x7c87fe], // Australia 6 (before exception)
45-
[0x7c8800, 0x7c8ffe], // Australia 7 (before exception)
44+
[0x7c8400, 0x7c87ff], // Australia 6 (before exception)
45+
[0x7c8800, 0x7c8fff], // Australia 7 (before exception)
4646
[0x7c9000, 0x7c9fff], // Australia 8
4747
[0x7ca000, 0x7cbfff], // Australia 9
4848
[0x7d0000, 0x7dffff], // Australia 11

0 commit comments

Comments
 (0)