aboutsummaryrefslogtreecommitdiff
path: root/lib/ints/ints_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ints/ints_test.go')
-rw-r--r--lib/ints/ints_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ints/ints_test.go b/lib/ints/ints_test.go
index 85d91ed1..a0d6c90d 100644
--- a/lib/ints/ints_test.go
+++ b/lib/ints/ints_test.go
@@ -175,9 +175,7 @@ func TestSwap(t *testing.T) {
Swap(in, 0, len(in)-1)
- tmp := exp[0]
- exp[0] = exp[len(exp)-1]
- exp[len(exp)-1] = tmp
+ exp[0], exp[len(exp)-1] = exp[len(exp)-1], exp[0]
test.Assert(t, "", exp, in)
}