]> git.scottworley.com Git - planeteer/commitdiff
gofmt
authorScott Worley <scottworley@scottworley.com>
Thu, 7 Nov 2013 15:32:38 +0000 (07:32 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 7 Nov 2013 15:32:38 +0000 (07:32 -0800)
planeteer.go
planeteer_test.go

index 1074e92a377c13205e8adb335912ce43523568b3..513ad1a4e7629704245c1101599fa1122f730327 100644 (file)
@@ -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.)
  *    * 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:
  */
 
 // 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[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)
        }
        start_index := EncodeIndex(dims, addr)
        table[start_index].value = Value(*funds)
index db3294cd51a3462b4e677751d1115e255eafe434..5bf75ded35b2762433a0c9cb77a3a5c27a8b896b 100644 (file)
@@ -20,17 +20,17 @@ func TestEncodeDecode(t *testing.T) {
 
 func TestCommas(t *testing.T) {
        cases := map[Value]string{
 
 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",
                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 {
        }
        for n, s := range cases {
                if Commas(n) != s {