aboutsummaryrefslogtreecommitdiff
path: root/src/log/log_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/log/log_test.go')
-rw-r--r--src/log/log_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log/log_test.go b/src/log/log_test.go
index cdccbc554d..5be8e82258 100644
--- a/src/log/log_test.go
+++ b/src/log/log_test.go
@@ -74,6 +74,12 @@ func testPrint(t *testing.T, flag int, prefix string, pattern string, useFormat
SetOutput(os.Stderr)
}
+func TestDefault(t *testing.T) {
+ if got := Default(); got != std {
+ t.Errorf("Default [%p] should be std [%p]", got, std)
+ }
+}
+
func TestAll(t *testing.T) {
for _, testcase := range tests {
testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false)