aboutsummaryrefslogtreecommitdiff
path: root/template/go/snip-test-case.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-09-12 16:50:41 +0900
committermattn <mattn.jp@gmail.com>2013-09-12 16:50:41 +0900
commit1c9e7729fb8845088ed9e223581dd37bd8e502cc (patch)
treee7025592a96163a5454b216f4b479cd36f7a0817 /template/go/snip-test-case.go
parentd1b69d9a9b9372ef56ae7ee91799e23f2ee9703b (diff)
downloadvim-sonictemplate-1c9e7729fb8845088ed9e223581dd37bd8e502cc.tar.gz
vim-sonictemplate-1c9e7729fb8845088ed9e223581dd37bd8e502cc.tar.bz2
vim-sonictemplate-1c9e7729fb8845088ed9e223581dd37bd8e502cc.zip
Add templates that I use often
Diffstat (limited to 'template/go/snip-test-case.go')
-rw-r--r--template/go/snip-test-case.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/template/go/snip-test-case.go b/template/go/snip-test-case.go
new file mode 100644
index 0000000..346cced
--- /dev/null
+++ b/template/go/snip-test-case.go
@@ -0,0 +1,7 @@
+func Test{{_cursor_}}(t *testing.T) {
+ value := 1
+ expected := 2
+ if value != expected {
+ t.Fatalf("Expected %v, but %d:", value, expected)
+ }
+}