commit | 32416ce123c0554b34542482d19c771051d2c79d | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Sat Oct 23 17:09:41 2021 +0200 |
committer | Akron <nils@diewald-online.de> | Sat Oct 23 17:09:41 2021 +0200 |
tree | 8b8851ae4ede6825e8e9df4e4500b03888e40540 | |
parent | 98fbfefca1768dc9a498887a0cd2072a4c85f85a [diff] [blame] |
Support offsets in token writer Change-Id: I1a75f8b8b3e00a0d469580cb1abee72153bbe362
diff --git a/token_writer_test.go b/token_writer_test.go index 84a4074..8ab6ed0 100644 --- a/token_writer_test.go +++ b/token_writer_test.go
@@ -19,7 +19,7 @@ tws.Token(0, []rune{'a', 'b', 'c'}) - tws.Token(0, []rune{'d', 'e', 'f'}) + tws.Token(1, []rune{'d', 'e', 'f'}) tws.SentenceEnd(0) @@ -27,5 +27,5 @@ tws.Flush() - assert.Equal("abc\ndef\n\n\n", w.String()) + assert.Equal("abc\nef\n\n\n", w.String()) }