From 299e621e4c94af84b9a60f87af6813ab070e3d67 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 25 Mar 2009 23:50:16 +0000 Subject: [PATCH] Add test case for consecutive hyphens. svn path=/main/trunk/; revision=13186 --- pym/portage/tests/dep/test_isvalidatom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/tests/dep/test_isvalidatom.py b/pym/portage/tests/dep/test_isvalidatom.py index 6565b96a7..a10d730b3 100644 --- a/pym/portage/tests/dep/test_isvalidatom.py +++ b/pym/portage/tests/dep/test_isvalidatom.py @@ -64,6 +64,9 @@ class IsValidAtom(TestCase): ( "=null/portage-2.1*", True ), ( "=foo/bar-123-1", True ), ( "=foo/bar-123-1-r1", True ), + ( "=foo/bar--baz-1-r1", False ), + ( "=foo/bar-baz--1-r1", False ), + ( "=foo/bar-baz-1--r1", False ), ] for test in tests: -- 2.26.2