|
for _, tt := range tests { |
|
t.Run(tt.name, func(t *testing.T) { |
|
if got := twoSum(tt.nums, tt.target); !reflect.DeepEqual(got, tt.want) { |
|
t.Errorf("twoSum() = %v, want %v", got, tt.want) |
|
} |
|
}) |
|
} |
We look for a specific order at the moment, but this should be fixed.
leetcode/src/1-two-sum/main_test.go
Lines 35 to 41 in 2ebfbe5
We look for a specific order at the moment, but this should be fixed.