From 1b22c2e2b19b98559ef4f15306e8f58c187582e6 Mon Sep 17 00:00:00 2001 From: Andrew Crites Date: Thu, 12 Jun 2014 14:01:26 -0400 Subject: [PATCH] Including test for specific version listing This fixes the issue of nvm ls v[:digit:].[:digit:].[:digit:] listing the version even if it isn't available --- ...rsioning vx.x.x should only list a matched version" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 "test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" new file mode 100755 index 0000000..7cd94ce --- /dev/null +++ "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" @@ -0,0 +1,10 @@ +#!/bin/sh + +mkdir ../../../v0.1.2 + +. ../../../nvm.sh + +nvm ls v0.1 | grep v0.1.2 && +nvm ls v0.1.2 | grep v0.1.2 && +nvm ls v0.1. | grep N/A && +nvm ls v0.1.1 | grep N/A