Skip to content
Myr

Adding a failing test: `nvm ls 0.0.x` includes `v0.0.xy`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 3c66c20 · Browse files · 2 files+23 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+23 added−0 removed

  • tests:+23 added−0 removed

2 files+23 added−0 removed

added:test/fast/Listing versions/Running "nvm ls 0.0.2" should display only version 0.0.2.+21 added
1#!/bin/sh23mkdir ../../../v0.0.24mkdir ../../../v0.0.2056. ../../../nvm.sh78die () { echo $@ ; exit 1; }910# The result should contain only the appropriate version numbers.1112nvm ls 0.0.2 | grep 'v0.0.2' > /dev/null13if [ $? -eq 0 ]; then14 echo '"nvm ls 0.0.2" contained v0.0.2'15fi1617nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null18if [ $? -eq 0 ]; then19 die '"nvm ls 0.0.2" contained v0.0.20'20fi21
modified:test/fast/Listing versions/teardown+2 added
1rmdir ../../../v0.0.1 >/dev/null 2>&12rmdir ../../../v0.0.2 >/dev/null 2>&13rmdir ../../../v0.0.3 >/dev/null 2>&14rmdir ../../../v0.0.9 >/dev/null 2>&15rmdir ../../../v0.0.20 >/dev/null 2>&16rmdir ../../../v0.1.2 >/dev/null 2>&17rmdir ../../../v0.1.3 >/dev/null 2>&18rmdir ../../../v0.2.3 >/dev/null 2>&19rmdir ../../../v0.3.1 >/dev/null 2>&1
5 unmodified lines