summaryrefslogtreecommitdiffstats
path: root/src/reader_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-02-17 19:28:10 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-02-17 19:28:10 +0900
commitd760b790b37a5d26b3068ed9f5b4efcaa3cf5cae (patch)
tree7f8d398182f207b8505ae8cbf1c0c1405899d163 /src/reader_test.go
parent1b5599972abb1ca4d1498ec1dfe9bc041f8d238a (diff)
Fix typo in code
Diffstat (limited to 'src/reader_test.go')
-rw-r--r--src/reader_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader_test.go b/src/reader_test.go
index 5800b3f2..144a3ff1 100644
--- a/src/reader_test.go
+++ b/src/reader_test.go
@@ -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")
}
}