55 "testing"
66)
77
8-
98func TestMapIntInt64 (t * testing.T ) {
109 // Test : add 1 to the list
1110 expectedList := []int64 {2 , 3 , 4 }
@@ -201,7 +200,7 @@ func TestMapIntBool(t *testing.T) {
201200 expectedList := []bool {true , false }
202201 newList := MapIntBool (someLogicIntBool , []int {10 , 0 })
203202
204- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
203+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
205204 t .Errorf ("MapIntBool failed. expected=%v, actual=%v" , expectedList , newList )
206205 }
207206
@@ -410,7 +409,7 @@ func TestMapInt64Bool(t *testing.T) {
410409 expectedList := []bool {true , false }
411410 newList := MapInt64Bool (someLogicInt64Bool , []int64 {10 , 0 })
412411
413- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
412+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
414413 t .Errorf ("MapInt64Bool failed. expected=%v, actual=%v" , expectedList , newList )
415414 }
416415
@@ -619,7 +618,7 @@ func TestMapInt32Bool(t *testing.T) {
619618 expectedList := []bool {true , false }
620619 newList := MapInt32Bool (someLogicInt32Bool , []int32 {10 , 0 })
621620
622- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
621+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
623622 t .Errorf ("MapInt32Bool failed. expected=%v, actual=%v" , expectedList , newList )
624623 }
625624
@@ -828,7 +827,7 @@ func TestMapInt16Bool(t *testing.T) {
828827 expectedList := []bool {true , false }
829828 newList := MapInt16Bool (someLogicInt16Bool , []int16 {10 , 0 })
830829
831- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
830+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
832831 t .Errorf ("MapInt16Bool failed. expected=%v, actual=%v" , expectedList , newList )
833832 }
834833
@@ -1037,7 +1036,7 @@ func TestMapInt8Bool(t *testing.T) {
10371036 expectedList := []bool {true , false }
10381037 newList := MapInt8Bool (someLogicInt8Bool , []int8 {10 , 0 })
10391038
1040- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
1039+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
10411040 t .Errorf ("MapInt8Bool failed. expected=%v, actual=%v" , expectedList , newList )
10421041 }
10431042
@@ -1246,7 +1245,7 @@ func TestMapUintBool(t *testing.T) {
12461245 expectedList := []bool {true , false }
12471246 newList := MapUintBool (someLogicUintBool , []uint {10 , 0 })
12481247
1249- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
1248+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
12501249 t .Errorf ("MapUintBool failed. expected=%v, actual=%v" , expectedList , newList )
12511250 }
12521251
@@ -1455,7 +1454,7 @@ func TestMapUint64Bool(t *testing.T) {
14551454 expectedList := []bool {true , false }
14561455 newList := MapUint64Bool (someLogicUint64Bool , []uint64 {10 , 0 })
14571456
1458- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
1457+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
14591458 t .Errorf ("MapUint64Bool failed. expected=%v, actual=%v" , expectedList , newList )
14601459 }
14611460
@@ -1664,7 +1663,7 @@ func TestMapUint32Bool(t *testing.T) {
16641663 expectedList := []bool {true , false }
16651664 newList := MapUint32Bool (someLogicUint32Bool , []uint32 {10 , 0 })
16661665
1667- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
1666+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
16681667 t .Errorf ("MapUint32Bool failed. expected=%v, actual=%v" , expectedList , newList )
16691668 }
16701669
@@ -1873,7 +1872,7 @@ func TestMapUint16Bool(t *testing.T) {
18731872 expectedList := []bool {true , false }
18741873 newList := MapUint16Bool (someLogicUint16Bool , []uint16 {10 , 0 })
18751874
1876- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
1875+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
18771876 t .Errorf ("MapUint16Bool failed. expected=%v, actual=%v" , expectedList , newList )
18781877 }
18791878
@@ -2082,7 +2081,7 @@ func TestMapUint8Bool(t *testing.T) {
20822081 expectedList := []bool {true , false }
20832082 newList := MapUint8Bool (someLogicUint8Bool , []uint8 {10 , 0 })
20842083
2085- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2084+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
20862085 t .Errorf ("MapUint8Bool failed. expected=%v, actual=%v" , expectedList , newList )
20872086 }
20882087
@@ -2291,7 +2290,7 @@ func TestMapStrBool(t *testing.T) {
22912290 expectedList := []bool {true , false }
22922291 newList := MapStrBool (someLogicStrBool , []string {"10" , "0" })
22932292
2294- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2293+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
22952294 t .Errorf ("MapStrBool failed. expected=%v, actual=%v" , expectedList , newList )
22962295 }
22972296
@@ -2310,7 +2309,7 @@ func TestMapBoolInt(t *testing.T) {
23102309 expectedList := []int {10 , 0 }
23112310 newList := MapBoolInt (someLogicBoolInt , []bool {true , false })
23122311
2313- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2312+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
23142313 t .Errorf ("MapBoolInt failed. expected=%v, actual=%v" , expectedList , newList )
23152314 }
23162315
@@ -2329,7 +2328,7 @@ func TestMapBoolInt64(t *testing.T) {
23292328 expectedList := []int64 {10 , 0 }
23302329 newList := MapBoolInt64 (someLogicBoolInt64 , []bool {true , false })
23312330
2332- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2331+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
23332332 t .Errorf ("MapBoolInt64 failed. expected=%v, actual=%v" , expectedList , newList )
23342333 }
23352334
@@ -2348,7 +2347,7 @@ func TestMapBoolInt32(t *testing.T) {
23482347 expectedList := []int32 {10 , 0 }
23492348 newList := MapBoolInt32 (someLogicBoolInt32 , []bool {true , false })
23502349
2351- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2350+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
23522351 t .Errorf ("MapBoolInt32 failed. expected=%v, actual=%v" , expectedList , newList )
23532352 }
23542353
@@ -2367,7 +2366,7 @@ func TestMapBoolInt16(t *testing.T) {
23672366 expectedList := []int16 {10 , 0 }
23682367 newList := MapBoolInt16 (someLogicBoolInt16 , []bool {true , false })
23692368
2370- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2369+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
23712370 t .Errorf ("MapBoolInt16 failed. expected=%v, actual=%v" , expectedList , newList )
23722371 }
23732372
@@ -2386,7 +2385,7 @@ func TestMapBoolInt8(t *testing.T) {
23862385 expectedList := []int8 {10 , 0 }
23872386 newList := MapBoolInt8 (someLogicBoolInt8 , []bool {true , false })
23882387
2389- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2388+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
23902389 t .Errorf ("MapBoolInt8 failed. expected=%v, actual=%v" , expectedList , newList )
23912390 }
23922391
@@ -2405,7 +2404,7 @@ func TestMapBoolUint(t *testing.T) {
24052404 expectedList := []uint {10 , 0 }
24062405 newList := MapBoolUint (someLogicBoolUint , []bool {true , false })
24072406
2408- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2407+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
24092408 t .Errorf ("MapBoolUint failed. expected=%v, actual=%v" , expectedList , newList )
24102409 }
24112410
@@ -2424,7 +2423,7 @@ func TestMapBoolUint64(t *testing.T) {
24242423 expectedList := []uint64 {10 , 0 }
24252424 newList := MapBoolUint64 (someLogicBoolUint64 , []bool {true , false })
24262425
2427- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2426+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
24282427 t .Errorf ("MapBoolUint64 failed. expected=%v, actual=%v" , expectedList , newList )
24292428 }
24302429
@@ -2443,7 +2442,7 @@ func TestMapBoolUint32(t *testing.T) {
24432442 expectedList := []uint32 {10 , 0 }
24442443 newList := MapBoolUint32 (someLogicBoolUint32 , []bool {true , false })
24452444
2446- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2445+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
24472446 t .Errorf ("MapBoolUint32 failed. expected=%v, actual=%v" , expectedList , newList )
24482447 }
24492448
@@ -2462,7 +2461,7 @@ func TestMapBoolUint16(t *testing.T) {
24622461 expectedList := []uint16 {10 , 0 }
24632462 newList := MapBoolUint16 (someLogicBoolUint16 , []bool {true , false })
24642463
2465- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2464+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
24662465 t .Errorf ("MapBoolUint16 failed. expected=%v, actual=%v" , expectedList , newList )
24672466 }
24682467
@@ -2481,7 +2480,7 @@ func TestMapBoolUint8(t *testing.T) {
24812480 expectedList := []uint8 {10 , 0 }
24822481 newList := MapBoolUint8 (someLogicBoolUint8 , []bool {true , false })
24832482
2484- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2483+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
24852484 t .Errorf ("MapBoolUint8 failed. expected=%v, actual=%v" , expectedList , newList )
24862485 }
24872486
@@ -2500,7 +2499,7 @@ func TestMapBoolStr(t *testing.T) {
25002499 expectedList := []string {"10" , "0" }
25012500 newList := MapBoolStr (someLogicBoolStr , []bool {true , false })
25022501
2503- if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ]{
2502+ if newList [0 ] != expectedList [0 ] && newList [1 ] != expectedList [1 ] {
25042503 t .Errorf ("MapBoolStr failed. expected=%v, actual=%v" , expectedList , newList )
25052504 }
25062505
0 commit comments