diff --git a/test/IECore/StringAlgoTest.py b/test/IECore/StringAlgoTest.py index 7d0b6e9dab..6a6a081936 100644 --- a/test/IECore/StringAlgoTest.py +++ b/test/IECore/StringAlgoTest.py @@ -131,6 +131,14 @@ def testMatchMultiple( self ) : ( "bb", "*a b", False ), ( "bb", "*a bb", True ), ( "bb", "*a bb", True ), + # Doesn't match, because "a b" specifies two different patterns + # separated by a space. + ( "a b", "a b", False ), + ( "apple ball", "apple ball", False ), + # Does match, because the escaping leaves us with a single pattern + # containing a space. + ( "a b", "a\ b", True ), + ( "apple ball", "apple\ ball", True ), ] : if r :