From 957780462fbf7d458e6eb63e5527e500c21673d4 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Tue, 28 Aug 2012 09:47:55 -0600 Subject: [PATCH] added an example test file --- genimage/pic/pic_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 genimage/pic/pic_test.go diff --git a/genimage/pic/pic_test.go b/genimage/pic/pic_test.go new file mode 100644 index 0000000..a44c7d2 --- /dev/null +++ b/genimage/pic/pic_test.go @@ -0,0 +1,17 @@ +package pic + +import "testing" + +func TestExpectedFailure(t *testing.T) { + const a, b = 3, 2 + if a != b { + t.Error("contrived failure") + } +} + +func TestExpectedSuccess(t *testing.T) { + const a, b = 3, 3 + if a != b { + t.Error("contrived failure") + } +}