nvm/test/fast/Unit tests/nvm_is_merged_node_version

11 lines
426 B
Plaintext
Raw Permalink Normal View History

2015-08-24 13:09:31 +08:00
#!/bin/sh
die () { echo "$@" ; exit 1; }
2015-08-24 13:09:31 +08:00
\. ../../../nvm.sh
2015-08-24 13:09:31 +08:00
nvm_is_merged_node_version '4.0' || die '"nvm_is_merged_node_version 4.0 was not true'
nvm_is_merged_node_version '5.1' || die '"nvm_is_merged_node_version 5.1 was not true'
! nvm_is_merged_node_version '3.99' || die '"nvm_is_merged_node_version 3.99 was not false'
! nvm_is_merged_node_version 'v1.0.0' || die '"nvm_is_merged_node_version v1.0.0" was not false'