mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Remove game-specific scoring
This commit is contained in:
@@ -39,27 +39,27 @@ func TestGetArmorBlockStatuses(t *testing.T) {
|
||||
var plc Plc
|
||||
|
||||
plc.registers[fieldIoConnection] = 0
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false, "ShieldGenerator": false, "ControlPanel": false},
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 1
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": false, "ShieldGenerator": false, "ControlPanel": false},
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": false},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 2
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": true, "ShieldGenerator": false, "ControlPanel": false},
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": true},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 4
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false, "ShieldGenerator": true, "ControlPanel": false},
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 8
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false, "ShieldGenerator": false, "ControlPanel": true},
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": false},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 5
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": false, "ShieldGenerator": true, "ControlPanel": false},
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": false},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 10
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": true, "ShieldGenerator": false, "ControlPanel": true},
|
||||
assert.Equal(t, map[string]bool{"RedDs": false, "BlueDs": true},
|
||||
plc.GetArmorBlockStatuses())
|
||||
plc.registers[fieldIoConnection] = 15
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": true, "ShieldGenerator": true, "ControlPanel": true},
|
||||
assert.Equal(t, map[string]bool{"RedDs": true, "BlueDs": true},
|
||||
plc.GetArmorBlockStatuses())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user