aboutsummaryrefslogtreecommitdiff
path: root/ops_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-08 13:33:01 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-08 13:33:01 +0200
commita3a8f67b718768867bf579c79bc2ce30a0bde45b (patch)
tree6d3bd2499bcf1e3ff19d36ac3c96e168009de015 /ops_test.go
parent4ad8cc3d0c36cb784fea32398afbf0cd0e138165 (diff)
Clean up
Diffstat (limited to 'ops_test.go')
-rw-r--r--ops_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/ops_test.go b/ops_test.go
index 2945447..fd0cadb 100644
--- a/ops_test.go
+++ b/ops_test.go
@@ -3,49 +3,49 @@ package main
import "testing"
func TestAdd(t *testing.T) {
- if _, ok := verify("+", add); !ok {
+ if _, ok := verify("+"); !ok {
t.Error("add failed")
}
}
func BenchmarkAdd(b *testing.B) {
for i := 0; i < b.N; i++ {
- verify("+", add)
+ verify("+")
}
}
func TestSub(t *testing.T) {
- if _, ok := verify("-", sub); !ok {
+ if _, ok := verify("-"); !ok {
t.Error("sub failed")
}
}
func BenchmarkSub(b *testing.B) {
for i := 0; i < b.N; i++ {
- verify("-", sub)
+ verify("-")
}
}
func TestTimes(t *testing.T) {
- if _, ok := verify("*", times); !ok {
+ if _, ok := verify("*"); !ok {
t.Error("times failed")
}
}
func BenchmarkTimes(b *testing.B) {
for i := 0; i < b.N; i++ {
- verify("*", times)
+ verify("*")
}
}
func TestPot(t *testing.T) {
- if _, ok := verify("^", pot); !ok {
+ if _, ok := verify("^"); !ok {
t.Error("pot failed")
}
}
func BenchmarkPot(b *testing.B) {
for i := 0; i < b.N; i++ {
- verify("^", pot)
+ verify("^")
}
}