aboutsummaryrefslogtreecommitdiff
path: root/verify.go
diff options
context:
space:
mode:
Diffstat (limited to 'verify.go')
-rw-r--r--verify.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/verify.go b/verify.go
index 8d09b1e..cedfd98 100644
--- a/verify.go
+++ b/verify.go
@@ -45,3 +45,10 @@ func verify(op string, f function) {
fmt.Println(m.Value, op, n.Value, "=", r.Value,
r.Value == expected.Value)
}
+
+func verifyAll() {
+ verify("+", add)
+ verify("-", sub)
+ verify("*", times)
+ verify("^", pot)
+}