diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-09-20 17:46:39 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-09-20 17:46:39 +0200 |
commit | e93aae88985667189bb5b24ad0d5f54cb5fdba70 (patch) | |
tree | 886dcf159ad71f8201d3594b2d3e4b8d2866bd5c /test/samples/count.rb | |
parent | a48037b85a12228431b32103786456f36beb355f (diff) | |
download | coderay-e93aae88985667189bb5b24ad0d5f54cb5fdba70.tar.gz |
remove outdated, misleading and buggy "samples"
Diffstat (limited to 'test/samples/count.rb')
-rw-r--r-- | test/samples/count.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/samples/count.rb b/test/samples/count.rb deleted file mode 100644 index bcb7c2d..0000000 --- a/test/samples/count.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'coderay'
-
-stats = CodeRay.encoder(:statistic)
-stats.encode("puts 17 + 4\n", :ruby)
-
-puts '%d out of %d tokens have the kind :integer.' % [
- stats.type_stats[:integer].count,
- stats.real_token_count
-]
-#-> 2 out of 4 tokens have the kind :integer.
|