fix(rust): the fleet's label list prefers a capitalised spelling
Found on the walk: the game spells one label "jungle swamp" on both rigs' maps, and the fleet list printed it that way beside the minor list's "Jungle Swamp". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -47,6 +47,11 @@ test('the fleet list is every server’s labels and the minor list, each once',
|
||||
)
|
||||
})
|
||||
|
||||
test('the fleet list shows a capitalised spelling where the game only wrote lower case', () => {
|
||||
const labels = fleetLabels(MINOR, [{ markerLabels: [{ key: 'jungle swamp', label: 'jungle swamp', count: 3 }] }])
|
||||
assert.deepEqual(labels.find((l) => l.key === 'jungle swamp'), { key: 'jungle swamp', label: 'Jungle Swamp', count: 3 })
|
||||
})
|
||||
|
||||
test('setting the fleet back to the built-in answer clears the row instead of copying it', () => {
|
||||
assert.deepEqual(setFleet(MINOR, {}, 'substation', true), { substation: true })
|
||||
assert.deepEqual(setFleet(MINOR, { substation: true }, 'substation', false), {})
|
||||
|
||||
Reference in New Issue
Block a user