Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 1e8c52b

More tests.

  • Participants
  • Parent commits a5b2581

Comments (0)

Files changed (1)

File perl/modules/XML-Grammar-Fiction/t/base/line-iterator-unit.t

 
 use utf8;
 
-use Test::More tests => 4;
+use Test::More tests => 6;
 
 use XML::Grammar::FictionBase::FromProto::Parser::LineIterator;
 
     # TEST
     ok (scalar($parser->at_line_start()), 
         "Parser is at line start.");
+
+    {
+        my ($l_ref, $pos) = $parser->curr_line_and_pos();
+
+        # TEST
+        is ($$l_ref, 
+            qq{I had called upon my friend, Mr. Sherlock Holmes, one day in the autumn of\n},
+            "Line ref of ->curr_line_and_pos() is OK."
+        );
+
+        # TEST
+        is ($pos, 0, "Pos of ->curr_line_and_pos() is OK.")
+    }
 }