From a8a75320eb274ed27227b70a3d4d090c4674237d Mon Sep 17 00:00:00 2001 From: Dave Hall Date: Mon, 19 Oct 2015 16:54:16 +1100 Subject: Support for alternative equals specs Composer assumes equals if no operator is used npm uses a single equals operator --- tests/test_match.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/test_match.py b/tests/test_match.py index 73a2588..c4452d4 100755 --- a/tests/test_match.py +++ b/tests/test_match.py @@ -21,6 +21,8 @@ class MatchTestCase(unittest.TestCase): valid_specs = [ '*', '==0.1.0', + '=0.1.0', + '0.1.0', '<=0.1.1', '<0.1', '>0.1.2-rc1', @@ -49,6 +51,18 @@ class MatchTestCase(unittest.TestCase): '0.1.2+build42-12.2012-01-01.12h23', '0.1.2-rc1.3-14.15+build.2012-01-01.11h34', ], + '=0.1.2': [ + '0.1.2-rc1', + '0.1.2-rc1.3.4', + '0.1.2+build42-12.2012-01-01.12h23', + '0.1.2-rc1.3-14.15+build.2012-01-01.11h34', + ], + '0.1.2': [ + '0.1.2-rc1', + '0.1.2-rc1.3.4', + '0.1.2+build42-12.2012-01-01.12h23', + '0.1.2-rc1.3-14.15+build.2012-01-01.11h34', + ], '<=0.1.2': [ '0.1.1', '0.1.2-rc1', -- cgit v1.2.1