Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Oct 27, 2013
1 parent 6cef03b commit b161453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions semver.js
Expand Up @@ -930,21 +930,21 @@ function validRange(range, loose) {
// Determine if version is less than all the versions possible in the range
exports.ltr = ltr;
function ltr(version, range, loose) {
return outside(version, range, 'lo', loose);
return outside(version, range, '<', loose);
}

// Determine if version is greater than all the versions possible in the range.
exports.gtr = gtr;
function gtr(version, range, loose) {
return outside(version, range, 'hi', loose);
return outside(version, range, '>', loose);
}

exports.outside = outside;
function outside(version, range, hilo, loose) {
version = new SemVer(version, loose);
range = new Range(range, loose);

var gtfn, ltefn, comp, ecomp;
var gtfn, ltefn, ltfn, comp, ecomp;
switch (hilo) {
case '>':
gtfn = gt;
Expand Down

0 comments on commit b161453

Please sign in to comment.