diff options
Diffstat (limited to 'sd_daemon')
-rw-r--r-- | sd_daemon/log_test.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sd_daemon/log_test.go b/sd_daemon/log_test.go index d9937e2..2f835a8 100644 --- a/sd_daemon/log_test.go +++ b/sd_daemon/log_test.go @@ -40,16 +40,16 @@ func TestLog(t *testing.T) { } testcases := map[testcase]string{ - testcase{6, "foo"}: "<6>foo\n", - testcase{6, "foo\n"}: "<6>foo\n", - testcase{6, "foo\nbar"}: "<6>foo\n<6>bar\n", - testcase{6, "foo\nbar\n"}: "<6>foo\n<6>bar\n", - testcase{6, "foo\nbar\nbaz"}: "<6>foo\n<6>bar\n<6>baz\n", - testcase{6, "foo\nbar\nbaz\n"}: "<6>foo\n<6>bar\n<6>baz\n", + {6, "foo"}: "<6>foo\n", + {6, "foo\n"}: "<6>foo\n", + {6, "foo\nbar"}: "<6>foo\n<6>bar\n", + {6, "foo\nbar\n"}: "<6>foo\n<6>bar\n", + {6, "foo\nbar\nbaz"}: "<6>foo\n<6>bar\n<6>baz\n", + {6, "foo\nbar\nbaz\n"}: "<6>foo\n<6>bar\n<6>baz\n", - testcase{0, "foo"}: "<0>foo\n", - testcase{1, "foo"}: "<1>foo\n", - testcase{10, "foo"}: "<10>foo\n", + {0, "foo"}: "<0>foo\n", + {1, "foo"}: "<1>foo\n", + {10, "foo"}: "<10>foo\n", } for in, out := range testcases { |