We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb832a commit 6c6f0bfCopy full SHA for 6c6f0bf
test/test_rdoc_markup_parser.rb
@@ -625,6 +625,25 @@ def test_parse_paragraph_verbatim
625
assert_equal expected, @RMP.parse(str).parts
626
end
627
628
+ def test_parse_rule
629
+ str = <<-STR
630
+now is the time
631
+
632
+---
633
634
+for all good men
635
+ STR
636
637
+ expected = [
638
+ @RM::Paragraph.new('now is the time'),
639
+ @RM::BlankLine.new,
640
+ @RM::Rule.new(1),
641
642
+ @RM::Paragraph.new('for all good men')]
643
644
+ assert_equal expected, @RMP.parse(str).parts
645
+ end
646
647
def test_parse_ualpha
648
str = <<-STR
649
A. l1
0 commit comments