From: Scott Worley Date: Thu, 7 Nov 2013 15:32:38 +0000 (-0800) Subject: gofmt X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/a49e368fd68e6ebd97a8562d6bc0edb1a655e5a4 gofmt --- diff --git a/planeteer.go b/planeteer.go index 1074e92..513ad1a 100644 --- a/planeteer.go +++ b/planeteer.go @@ -193,7 +193,7 @@ func ReadData() (data planet_data) { * * 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: @@ -325,7 +325,7 @@ func CreateStateTable(data planet_data, dims LogicalIndex) []State { 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) diff --git a/planeteer_test.go b/planeteer_test.go index db3294c..5bf75de 100644 --- a/planeteer_test.go +++ b/planeteer_test.go @@ -20,17 +20,17 @@ func TestEncodeDecode(t *testing.T) { 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 {