- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestEmptyPrintCreatesLine (0.36 sec)
-
src/log/log_test.go
now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second()) if got == want { return } t.Errorf("got %q; want %q", got, want) } func TestEmptyPrintCreatesLine(t *testing.T) { var b strings.Builder l := New(&b, "Header:", LstdFlags) l.Print() l.Println("non-empty") output := b.String() if n := strings.Count(output, "Header"); n != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 20:04:37 UTC 2023 - 7.4K bytes - Viewed (0)