Skip to content

Commit

Permalink
Add User Defined Word Attribute Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarabia committed Jan 3, 2024
1 parent 242318d commit b34eb67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions USFMToolsSharpTest/USFMParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ public void TestWordEntryParse()
Assert.AreEqual("G5485", ((WMarker)parser.ParseFromString("\\f + \\fr 3:5 \\fk berhala \\ft Lih. \\w gracious|lemma=\"grace\" strong=\"G5485\" \\w* di Daftar Istilah.\\f*").Contents[0].Contents[2].Contents[1]).Attributes["strong"]);
Assert.AreEqual("H1234,G5485", ((WMarker)parser.ParseFromString("\\f + \\fr 3:5 \\fk berhala \\ft Lih. \\w gracious|strong=\"H1234,G5485\" \\w* di Daftar Istilah.\\f*").Contents[0].Contents[2].Contents[1]).Attributes["strong"]);
Assert.AreEqual("gnt5:51.1.2.1", ((WMarker)parser.ParseFromString("\\f + \\fr 3:5 \\fk berhala \\ft Lih. \\w gracious|lemma=\"grace\" srcloc=\"gnt5:51.1.2.1\" \\w* di Daftar Istilah.\\f*").Contents[0].Contents[2].Contents[1]).Attributes["srcloc"]);
Assert.AreEqual("metadata", ((WMarker)parser.ParseFromString("\\f + \\fr 3:5 \\fk berhala \\ft Lih. \\w gracious|lemma=\"grace\" x-myattr="metadata" srcloc=\"gnt5:51.1.2.1\" \\w* di Daftar Istilah.\\f*").Contents[0].Contents[2].Contents[1]).Attributes["x-myattr"]);

Check failure on line 402 in USFMToolsSharpTest/USFMParserTest.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error, ',' expected

Check failure on line 402 in USFMToolsSharpTest/USFMParserTest.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error, ',' expected

Check failure on line 402 in USFMToolsSharpTest/USFMParserTest.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error, ',' expected

Check failure on line 402 in USFMToolsSharpTest/USFMParserTest.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error, ',' expected

}
[TestMethod]
Expand Down

0 comments on commit b34eb67

Please sign in to comment.