summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-13 15:57:11 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-13 15:57:11 +0100
commit8d908474eff99a0a653bbc94f459537d56b83e92 (patch)
tree4b066ea50ca5f95f07782d0c58f8081c4c3ef39f /test/unit
parentbf395bd14ed7f63aab84955f6768f59965e3a73e (diff)
parent0a1f500d524ff0fb5eeafef051ccbb641954a87a (diff)
downloadcoderay-cleanup-output.tar.gz
Merge branch 'master' into cleanup-outputcleanup-output
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/debug.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/debug.rb b/test/unit/debug.rb
index f2b80bd..88baf56 100644
--- a/test/unit/debug.rb
+++ b/test/unit/debug.rb
@@ -18,15 +18,15 @@ class DebugEncoderTest < Test::Unit::TestCase
[:begin_group, :string],
['test', :content],
[:end_group, :string],
- [:begin_line, :test],
+ [:begin_line, :head],
["\n", :space],
["\n \t", :space],
[" \n", :space],
["[]", :method],
- [:end_line, :test],
+ [:end_line, :head],
].flatten
TEST_OUTPUT = <<-'DEBUG'.chomp
-integer(10)operator((\\\))string<content(test)>test[
+integer(10)operator((\\\))string<content(test)>head[
method([])]
@@ -62,10 +62,10 @@ method([])]
[:begin_group, :string],
['test', :content],
[:end_group, :string],
- [:begin_line, :test],
+ [:begin_line, :unknown],
["\n\n \t \n", :space],
["[]", :method],
- [:end_line, :test],
+ [:end_line, :unknown],
].flatten
def test_filtering_text_tokens