diff options
author | murphy <murphy@rubychan.de> | 2011-04-20 19:49:53 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-04-20 19:49:53 +0000 |
commit | aa17b9942d6ca3d01e3f74513e0903a195c23b22 (patch) | |
tree | eeee0ac8f13199d726f9eeb8f4ad7194773f0d36 /test | |
parent | 763948b33279a418b17f09f110e8cab0035a0734 (diff) | |
download | coderay-aa17b9942d6ca3d01e3f74513e0903a195c23b22.tar.gz |
Encoder refactoring to fix LOC and Statistic encoders
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/examples.rb | 8 | ||||
-rw-r--r-- | test/unit/statistic.rb | 12 |
2 files changed, 12 insertions, 8 deletions
diff --git a/test/functional/examples.rb b/test/functional/examples.rb index eb37c73..aed7605 100755 --- a/test/functional/examples.rb +++ b/test/functional/examples.rb @@ -65,16 +65,18 @@ Tokens 26 Non-Whitespace 15 Bytes Total 31 -Token Types (5): +Token Types (7): type count ratio size (average) ------------------------------------------------------------- TOTAL 26 100.00 % 1.2 delimiter 6 23.08 % 1.0 operator 5 19.23 % 1.0 space 5 19.23 % 1.0 - begin_group 3 11.54 % 0.0 + key 4 15.38 % 0.0 + :begin_group 3 11.54 % 0.0 + :end_group 3 11.54 % 0.0 content 3 11.54 % 4.3 - end_group 3 11.54 % 0.0 + string 2 7.69 % 0.0 integer 1 3.85 % 2.0 STATISTIC diff --git a/test/unit/statistic.rb b/test/unit/statistic.rb index 36385b0..1326dca 100644 --- a/test/unit/statistic.rb +++ b/test/unit/statistic.rb @@ -33,16 +33,18 @@ Tokens 11 Non-Whitespace 4 Bytes Total 20 -Token Types (5): +Token Types (7): type count ratio size (average) ------------------------------------------------------------- TOTAL 11 100.00 % 1.8 space 3 27.27 % 3.0 - begin_group 1 9.09 % 0.0 - begin_line 1 9.09 % 0.0 + string 2 18.18 % 0.0 + test 2 18.18 % 0.0 + :begin_group 1 9.09 % 0.0 + :begin_line 1 9.09 % 0.0 + :end_group 1 9.09 % 0.0 + :end_line 1 9.09 % 0.0 content 1 9.09 % 4.0 - end_group 1 9.09 % 0.0 - end_line 1 9.09 % 0.0 integer 1 9.09 % 2.0 method 1 9.09 % 2.0 operator 1 9.09 % 3.0 |