diff options
Diffstat (limited to 'src/unitTests.py')
-rw-r--r-- | src/unitTests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unitTests.py b/src/unitTests.py index cddcaf1..a4c651f 100644 --- a/src/unitTests.py +++ b/src/unitTests.py @@ -1464,6 +1464,11 @@ class UpcaseDowncaseUnicode(ParseTestCase): uword = pp.Word(ualphas).setParseAction(pp.downcaseTokens)
print_(uword.searchString(a))
+
+ kw = pp.Keyword('mykey', caseless=True).setParseAction(pp.upcaseTokens).setResultsName('rname')
+ ret = kw.parseString('mykey')
+ print(ret.rname)
+ assert ret.rname=='MYKEY', "failed to upcase with named result"
if not IRON_PYTHON_ENV:
#test html data
|