From aa17b9942d6ca3d01e3f74513e0903a195c23b22 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 20 Apr 2011 19:49:53 +0000 Subject: Encoder refactoring to fix LOC and Statistic encoders --- test/functional/examples.rb | 8 +++++--- test/unit/statistic.rb | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'test') 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 -- cgit v1.2.1