2015-02-02 05:01:40 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2015-02-02 05:01:40 +08:00
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2015-02-02 05:01:40 +08:00
|
|
|
|
|
|
|
nvm_is_valid_version 0.1.2 || die "nvm_is_valid_version 0.1.2 did not return 0"
|
|
|
|
nvm_is_valid_version foo && die "nvm_is_valid_version foo did not return 1"
|
|
|
|
nvm_is_valid_version iojs-1 || die "nvm_is_valid_version iojs-1 did not return 0"
|
|
|
|
nvm_is_valid_version iojs || die "nvm_is_valid_version iojs did not return 0"
|
|
|
|
nvm_is_valid_version node || die "nvm_is_valid_version node did not return 0"
|
|
|
|
nvm_is_valid_version stable || die "nvm_is_valid_version stable did not return 0"
|
|
|
|
nvm_is_valid_version unstable || die "nvm_is_valid_version unstable did not return 0"
|