Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/123200
Change subject: Add tests for sentences ending with reference ...................................................................... Add tests for sentences ending with reference Change-Id: I5ec0fe5b971de5f56aa3b8dc818add87f4c3c1f3 --- M tests/mt/Rot13/Rot13.test.json M tests/segmentation/SegmentationTests.json 2 files changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver refs/changes/00/123200/1 diff --git a/tests/mt/Rot13/Rot13.test.json b/tests/mt/Rot13/Rot13.test.json index ba9c470..c7c7c89 100644 --- a/tests/mt/Rot13/Rot13.test.json +++ b/tests/mt/Rot13/Rot13.test.json @@ -8,11 +8,15 @@ }, "3": { "source": "<i>This is in Italics</i> Some other text" + }, + "4": { + "source": "Sentence one. <a href=\"#\">reference</a> Starts with reference" } }, "result": { "1": "Qrovna", "2": "<P>Uryyb jbeyq</P>", - "3": "<I>Guvf vf va Vgnyvpf</I> Fbzr bgure grkg" + "3": "<I>Guvf vf va Vgnyvpf</I> Fbzr bgure grkg", + "4": "Fragrapr bar. <A HREF=\"#\">ersrerapr</A> Fgnegf jvgu ersrerapr" } } diff --git a/tests/segmentation/SegmentationTests.json b/tests/segmentation/SegmentationTests.json index ec91024..4de98c8 100644 --- a/tests/segmentation/SegmentationTests.json +++ b/tests/segmentation/SegmentationTests.json @@ -31,6 +31,11 @@ { "source": "<figure><a href=\"#\"><img src=\"img.png\"></a><figcaption>Figure caption</figcaption></figure>", "result": "<figure id=\"0\"><span class=\"cx-segment\" data-segmentid=\"1\"><a class=\"cx-link\" data-linkid=\"2\" href=\"#\"><img src=\"img.png\"></img></a></span><figcaption id=\"3\"><span class=\"cx-segment\" data-segmentid=\"4\">Figure caption</span></figcaption></figure>" + }, + { + "desc": "References can appear after period. Example: Hydrogen is a gas. [1] It is ...", + "source": "<p>Sentence one. <a href=\"#\">reference</a> Starts with reference</p>", + "result": "<p id=\"0\"><span class=\"cx-segment\" data-segmentid=\"1\">Sentence one. </span><span class=\"cx-segment\" data-segmentid=\"2\"><a class=\"cx-link\" data-linkid=\"3\" href=\"#\">reference</a> Starts with reference</span></p>" } ], "hi": [ -- To view, visit https://gerrit.wikimedia.org/r/123200 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5ec0fe5b971de5f56aa3b8dc818add87f4c3c1f3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/cxserver Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits