tests for ls

This commit is contained in:
Thomas Levine 2012-10-10 21:19:30 -04:00
parent 6f2b1a23ce
commit 2e5a7914c5
3 changed files with 24 additions and 9 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
. ../../../nvm.sh
mkdir ../../../v0.0.{1,3,9}
mkdir ../../../v0.3.{1,3,9}
# The result should contain the version numbers.
nvm ls | grep v0.0.1 &&
nvm ls | grep v0.0.3 &&
nvm ls | grep v0.0.9 &&
nvm ls | grep v0.3.1 &&
nvm ls | grep v0.3.3 &&
nvm ls | grep v0.3.9

View File

@ -0,0 +1,10 @@
#!/bin/sh
mkdir ../../../v0.1.3
mkdir ../../../v0.2.3
. ../../../nvm.sh
# The result should contain only the appropriate version numbers.
nvm ls 0.2 | grep v0.2.3 &&
nvm ls 0.1 | grep -v v0.2.3

View File

@ -1,9 +0,0 @@
#!/bin/sh
. ../../nvm.sh
mkdir -p ../../v0.0.{1,3,9}
# The result should contain the version numbers.
nvm ls | grep v0.0.1 &&
nvm ls | grep v0.0.3 &&
nvm ls | grep v0.0.9