Browse files

Explicitly test for unspecified 'q' values

  • Loading branch information...
1 parent 4b99520 commit 8b92a8063025f22bd5586380950ed848d92c2f2b @cosimo committed Nov 3, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 t/q.t
View
1 t/q.t
@@ -16,6 +16,7 @@ my @tests = (
[ 'en-US,en;q=0.9', 'en' ],
[ 'ru,en;q=0.9', 'ru' ],
[ '*,uk;q=0.2,fr;q=0.1', 'uk', 'Wildcard * should be last one' ],
+ [ 'de;q=0.8,pl,fr;q=0.2', 'pl', 'Unspecified q means q=1, regardless of position' ],
);
Test::More::plan(tests => @tests + 1);

0 comments on commit 8b92a80

Please sign in to comment.