Add Munich with the Brezn-IX

This commit is contained in:
Frederic Jung 2026-10-25 21:11:55 +01:00
parent 8c44bb6459
commit 6c2d5da5b8
No known key found for this signature in database
4 changed files with 12 additions and 8 deletions

View file

@ -507,12 +507,14 @@ test('#79 Benelux: Brussels red tape, the Flanders duopoly, Oostkamp trawlers an
assert.deepEqual(errors, []);
});
test('Stuttgart sits between Frankfurt and Zurich, and Hamburg is on the map', () => {
test('Stuttgart sits between Frankfurt and Zurich, and Hamburg and Munich are on the map', () => {
const { ev, errors } = load();
const y = c => ev(`CITY.${c}.y`), x = c => ev(`CITY.${c}.x`);
assert.ok(y('fra') < y('stg') && y('stg') < y('zrh'), 'north to south: Frankfurt, Stuttgart, Zurich');
assert.ok(Math.abs(x('stg') - x('fra')) < 16, 'not pushed off towards Prague');
assert.ok(x('stg') < x('prg') - 20);
assert.ok(x('stg') < x('muc') && x('muc') < x('vie') && y('muc') > y('prg') && y('muc') < y('mil'), 'Munich: east of Stuttgart, west of Vienna, south of Prague');
assert.equal(ev("CITY.muc.ix"), 'Brezn-IX');
assert.ok(y('ham') < y('ber') && y('ham') < y('fra'), 'Hamburg is up north');
assert.equal(ev("CITY.ham.ix"), 'Moin-IX');
assert.equal(ev("NET.lvl.pops.includes('ham')&&NET.dtk.pops.includes('ham')"), true);