File: text.rb

package info (click to toggle)
coderay 1.1.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,368 kB
  • sloc: ruby: 9,987; makefile: 14; sh: 4; python: 1
file content (14 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'test/unit'
require 'coderay'

class TextTest < Test::Unit::TestCase
  
  def test_count
    ruby = <<-RUBY
puts "Hello world!"
    RUBY
    tokens = CodeRay.scan ruby, :ruby
    assert_equal ruby, tokens.encode(:text)
  end
  
end