From 8c8adac4c40809d8ec092f4b1cc58de5bd409413 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 17 Jun 2017 14:29:11 +0900 Subject: want/got --- template/go/base-test.go | 8 ++++---- 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) } } -- cgit v1.2.3-54-g00ecf