Fix typo in code

This commit is contained in:
Junegunn Choi
2015-02-17 19:28:10 +09:00
parent 1b5599972a
commit d760b790b3
3 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ func TestReadFromCommand(t *testing.T) {
eventBox: eb}
// Check EventBox
if eb.Peak(EvtReadNew) {
if eb.Peek(EvtReadNew) {
t.Error("EvtReadNew should not be set yet")
}
@@ -25,7 +25,7 @@ func TestReadFromCommand(t *testing.T) {
}
// Check EventBox again
if !eb.Peak(EvtReadNew) {
if !eb.Peek(EvtReadNew) {
t.Error("EvtReadNew should be set yet")
}
@@ -38,7 +38,7 @@ func TestReadFromCommand(t *testing.T) {
})
// EventBox is cleared
if eb.Peak(EvtReadNew) {
if eb.Peek(EvtReadNew) {
t.Error("EvtReadNew should not be set yet")
}
@@ -50,7 +50,7 @@ func TestReadFromCommand(t *testing.T) {
}
// Check EventBox again
if eb.Peak(EvtReadNew) {
if eb.Peek(EvtReadNew) {
t.Error("Command failed. EvtReadNew should be set")
}
}