Skip to content

Commit

Permalink
Add failing test for #44
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed May 10, 2014
1 parent 3762072 commit f73b755
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/usc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -546,4 +556,4 @@ exports["Parents are supported"] = function(test) {
console.log(found);

test.done();
}
}

0 comments on commit f73b755

Please sign in to comment.