From 824cbc59eb6b5dd831d056844ee45d7bf5e40dfd Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sat, 23 Jan 2021 13:34:09 +0900 Subject: [PATCH] And update the test changed from that... --- test/testSyntaxHighlighter.krk.expect | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testSyntaxHighlighter.krk.expect b/test/testSyntaxHighlighter.krk.expect index f32660f..32a1c25 100644 --- a/test/testSyntaxHighlighter.krk.expect +++ b/test/testSyntaxHighlighter.krk.expect @@ -1,12 +1,12 @@ -[[[0, 20, 3]], [[0, 31, 2]], [[0, 4, 1], [4, 8, 0], [12, 6, 1], [18, 5, 0]], [[0, 4, 1], [4, 20, 0], [24, 6, 1], [30, 30, 0]], [], [[0, 3, 1], [3, 2, 0]], [[0, 10, 0], [10, 32, 2], [42, 2, 0], [44, 2, 1], [46, 3, 0]], [[0, 35, 0]], [], [[0, 13, 0]], [[0, 5, 4], [5, 14, 0]], [[0, 5, 4], [5, 13, 0]], [[0, 23, 0]]] -[[('# This is a comment.', 3)], [("'''This is a big fat string.'''", 2)], [('from', 1), (' fileio ', 0), ('import', 1), (' open', 0)], [('from', 1), (' syntax.highlighter ', 0), ('import', 1), (' KurokoHighlighter, toTerminal', 0)], [], [('let', 1), (' h', 0)], [('with open(', 0), ("'test/testSyntaxHighlighter.krk'", 2), (') ', 0), ('as', 1), (' f:', 0)], [(' h = KurokoHighlighter(f.read())', 0)], [], [('h.highlight()', 0)], [('print', 4), ('(h.linestates)', 0)], [('print', 4), ('(h.process())', 0)], [('toTerminal(h.process())', 0)]] +[[[0, 20, 3]], [[0, 31, 2]], [[0, 4, 1], [4, 8, 0], [12, 6, 1], [18, 5, 0]], [[0, 4, 1], [4, 20, 0], [24, 6, 1], [30, 30, 0]], [], [[0, 3, 1], [3, 2, 0]], [[0, 4, 1], [4, 6, 0], [10, 32, 2], [42, 2, 0], [44, 2, 1], [46, 3, 0]], [[0, 35, 0]], [], [[0, 13, 0]], [[0, 5, 4], [5, 14, 0]], [[0, 5, 4], [5, 13, 0]], [[0, 23, 0]]] +[[('# This is a comment.', 3)], [("'''This is a big fat string.'''", 2)], [('from', 1), (' fileio ', 0), ('import', 1), (' open', 0)], [('from', 1), (' syntax.highlighter ', 0), ('import', 1), (' KurokoHighlighter, toTerminal', 0)], [], [('let', 1), (' h', 0)], [('with', 1), (' open(', 0), ("'test/testSyntaxHighlighter.krk'", 2), (') ', 0), ('as', 1), (' f:', 0)], [(' h = KurokoHighlighter(f.read())', 0)], [], [('h.highlight()', 0)], [('print', 4), ('(h.linestates)', 0)], [('print', 4), ('(h.process())', 0)], [('toTerminal(h.process())', 0)]] # This is a comment. '''This is a big fat string.''' from fileio import open from syntax.highlighter import KurokoHighlighter, toTerminal  let h -with open('test/testSyntaxHighlighter.krk') as f: +with open('test/testSyntaxHighlighter.krk') as f:  h = KurokoHighlighter(f.read())  h.highlight()