summaryrefslogtreecommitdiff
path: root/tests/test_npm.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_npm.py')
-rw-r--r--tests/test_npm.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_npm.py b/tests/test_npm.py
index 76cb6e2..86cbc76 100644
--- a/tests/test_npm.py
+++ b/tests/test_npm.py
@@ -77,6 +77,18 @@ class NpmSpecTests(unittest.TestCase):
'~0.2': '>=0.2.0 <0.3.0',
'~0': '>=0.0.0 <1.0.0',
'~1.2.3-beta.2': '>=1.2.3-beta.2 <1.3.0',
+
+ # Caret ranges
+ '^1.2.3': '>=1.2.3 <2.0.0',
+ '^0.2.3': '>=0.2.3 <0.3.0',
+ '^0.0.3': '>=0.0.3 <0.0.4',
+ '^1.2.3-beta.2': '>=1.2.3-beta.2 <2.0.0',
+ '^0.0.3-beta': '>=0.0.3-beta <0.0.4',
+ '^1.2.x': '>=1.2.0 <2.0.0',
+ '^0.0.x': '>=0.0.0 <0.1.0',
+ '^0.0': '>=0.0.0 <0.1.0',
+ '^1.x': '>=1.0.0 <2.0.0',
+ '^0.x': '>=0.0.0 <1.0.0',
}
def test_expand(self):