More test case for stream logger

pull/55/head
V2Ray 2015-11-03 20:30:14 +01:00
parent 144141b3c3
commit 3f884ed924
1 changed files with 4 additions and 0 deletions

View File

@ -28,4 +28,8 @@ func TestStreamLogger(t *testing.T) {
}
logger.WriteLog("TestPrefix: ", "Test %s Format", "Stream Logger")
assert.Bytes(buffer.Bytes()).Equals([]byte("TestPrefix: Test Stream Logger Format\n"))
buffer.Reset()
logger.WriteLog("TestPrefix: ", "Test No Format")
assert.Bytes(buffer.Bytes()).Equals([]byte("TestPrefix: Test No Format\n"))
}