diff --git a/test/usc.js b/test/usc.js index 5f36870..f0f6826 100644 --- a/test/usc.js +++ b/test/usc.js @@ -58,7 +58,17 @@ exports["Multiple nearby cites"] = function(test) { test.equal(found[2].match, "5 U.S.C. ยงยง 8344") test.done(); -} +}; + +exports["Multiple results bug"] = function(test) { + var text = "Section 2333(d) of the Food, Agriculture, Conserva-" + + "8 tion, and Trade Act of 1990 (7 U.S.C. 950aaa-2(d)) is " + + "9 amended"; + test.expect(); + var found = Citation.find(text, {types: "usc" }).citations; + test.equal(found.length, 1); + test.done(); +}; exports["Basic excerpting"] = function(test) { // http://www.gpo.gov/fdsys/pkg/BILLS-112hr2045ih/html/BILLS-112hr2045ih.htm @@ -546,4 +556,4 @@ exports["Parents are supported"] = function(test) { console.log(found); test.done(); -} \ No newline at end of file +}