File: test_rgfa_line_comment.rb

package info (click to toggle)
ruby-rgfa 1.3.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 848 kB
  • sloc: ruby: 5,666; makefile: 9
file content (13 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "rgfa.rb"
require "test/unit"

class TestRGFALineComment < Test::Unit::TestCase

  def test_from_string
    str = "#this is a comment"
    l = str.to_rgfa_line
    assert_equal(RGFA::Line::Comment, l.class)
    assert_equal(str[1..-1], l.content)
  end

end