mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-06 20:47:53 +00:00
Adding a failing test: nvm ls 0.0.x
includes v0.0.xy
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir ../../../v0.0.2
|
||||
mkdir ../../../v0.0.20
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
die () { echo $@ ; exit 1; }
|
||||
|
||||
# The result should contain only the appropriate version numbers.
|
||||
|
||||
nvm ls 0.0.2 | grep 'v0.0.2' > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo '"nvm ls 0.0.2" contained v0.0.2'
|
||||
fi
|
||||
|
||||
nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
die '"nvm ls 0.0.2" contained v0.0.20'
|
||||
fi
|
||||
|
Reference in New Issue
Block a user