Permalink
Browse files

more caret tests

  • Loading branch information...
1 parent 0af8ac2 commit 4bd5887dac92e00f860d256d0ea712eee02e1e70 @isaacs isaacs committed Jul 30, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 test/index.js
View
@@ -213,7 +213,9 @@ test('\nrange tests', function(t) {
['^0.1.2', '0.1.2'],
['^0.1', '0.1.2'],
['^1.2', '1.4.2'],
- ['^1.2 ^1', '1.4.2']
+ ['^1.2 ^1', '1.4.2'],
+ ['^1.2', '1.2.0-pre'],
+ ['^1.2.3', '1.2.3-pre']
].forEach(function(v) {
var range = v[0];
var ver = v[1];
@@ -279,7 +281,8 @@ test('\nnegative range tests', function(t) {
['^1.2', '1.1.9'],
// invalid ranges never satisfied!
['blerg', '1.2.3'],
- ['git+https://user:password0123@github.com/foo', '123.0.0', true]
+ ['git+https://user:password0123@github.com/foo', '123.0.0', true],
+ ['^1.2.3', '2.0.0-pre']
].forEach(function(v) {
var range = v[0];
var ver = v[1];

0 comments on commit 4bd5887

Please sign in to comment.