From a3a8f67b718768867bf579c79bc2ce30a0bde45b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 8 Apr 2015 13:33:01 +0200 Subject: Clean up --- ops_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ops_test.go') 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("^") } } -- cgit v1.2.3