1
1
mirror of https://github.com/walles/moar.git synced 2024-11-23 05:53:18 +03:00

Additional corner case test

This commit is contained in:
Johan Walles 2023-01-11 11:08:38 +01:00
parent 05a2153c2c
commit e8a948ae9a

View File

@ -42,3 +42,9 @@ func TestConsumeEncodedEventWithUnsupportedEscapeCode(t *testing.T) {
assert.Assert(t, event == nil)
assert.Equal(t, remainder, "")
}
func TestConsumeEncodedEventWithNoInput(t *testing.T) {
event, remainder := consumeEncodedEvent("")
assert.Assert(t, event == nil)
assert.Equal(t, remainder, "")
}