* * Reduce the size of the Edens dimension from 3 to 2, for the
* same reasons as Fuel above. 33% savings.
* * Buy more ram. (Just sayin'. It's cheaper than you think.)
- *
+ *
*/
// The official list of dimensions:
addr[Edens] = *start_edens
addr[Location] = PlanetIndex(data, *start)
if *start_hold != "" {
- addr[Hold] = CommodityIndex(data,*start_hold)
+ addr[Hold] = CommodityIndex(data, *start_hold)
}
start_index := EncodeIndex(dims, addr)
table[start_index].value = Value(*funds)
func TestCommas(t *testing.T) {
cases := map[Value]string{
- 1: "1",
- 10: "10",
- 100: "100",
- 1000: "1,000",
- 10000: "10,000",
- 100000: "100,000",
+ 1: "1",
+ 10: "10",
+ 100: "100",
+ 1000: "1,000",
+ 10000: "10,000",
+ 100000: "100,000",
1000000: "1,000,000",
1234567: "1,234,567",
1000567: "1,000,567",
1234000: "1,234,000",
- 525000: "525,000",
+ 525000: "525,000",
}
for n, s := range cases {
if Commas(n) != s {