diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-06-17 14:29:11 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-06-17 14:29:20 +0900 |
commit | 8c8adac4c40809d8ec092f4b1cc58de5bd409413 (patch) | |
tree | 47c18e7e12cbeeb520a26def8f55f2ada096e0c2 /template | |
parent | 136c24fe153538b1b7bc6769f1c12056f0a8ecba (diff) | |
download | vim-sonictemplate-8c8adac4c40809d8ec092f4b1cc58de5bd409413.tar.gz vim-sonictemplate-8c8adac4c40809d8ec092f4b1cc58de5bd409413.tar.bz2 vim-sonictemplate-8c8adac4c40809d8ec092f4b1cc58de5bd409413.zip |
want/got
Diffstat (limited to 'template')
-rw-r--r-- | template/go/base-test.go | 8 | ||||
-rw-r--r-- | template/go/snip-test-case.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/template/go/base-test.go b/template/go/base-test.go index 1fabe32..d93c8b4 100644 --- a/template/go/base-test.go +++ b/template/go/base-test.go @@ -5,10 +5,10 @@ import ( ) func TestSimple(t *testing.T) { - value := 1 - expected := 2 - if value != expected { - t.Fatalf("Expected %v, but %v:", expected, value) + got := 1 + want := 2 + if got != want { + t.Fatalf("want %v, but %v:", want, got) } } {{_filter_:test}} diff --git a/template/go/snip-test-case.go b/template/go/snip-test-case.go index b0c295e..ee76293 100644 --- a/template/go/snip-test-case.go +++ b/template/go/snip-test-case.go @@ -1,7 +1,7 @@ func Test{{_cursor_}}(t *testing.T) { - value := 1 - expected := 2 - if value != expected { - t.Fatalf("Expected %v, but %v:", expected, value) + got := 1 + want := 2 + if got != want { + t.Fatalf("want %v, but %v:", want, got) } } |