Merge pull request #3445 from jlp765/popd
fix #3343 strutils.nim balance {.push.} with {.pop.}
This commit is contained in:
commit
ed4b0cc92e
1 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ import parseutils
|
||||||
|
|
||||||
include "system/inclrtl"
|
include "system/inclrtl"
|
||||||
|
|
||||||
|
{.pop.}
|
||||||
|
|
||||||
type
|
type
|
||||||
CharSet* {.deprecated.} = set[char] # for compatibility with Nim
|
CharSet* {.deprecated.} = set[char] # for compatibility with Nim
|
||||||
{.deprecated: [TCharSet: CharSet].}
|
{.deprecated: [TCharSet: CharSet].}
|
||||||
|
|
@ -1660,7 +1662,7 @@ when isMainModule:
|
||||||
doAssert isAlpha("Rasp")
|
doAssert isAlpha("Rasp")
|
||||||
doAssert isAlpha("Args")
|
doAssert isAlpha("Args")
|
||||||
doAssert(not isAlpha("$Tomato"))
|
doAssert(not isAlpha("$Tomato"))
|
||||||
|
|
||||||
doAssert isAlphaNumeric('3')
|
doAssert isAlphaNumeric('3')
|
||||||
doAssert isAlphaNumeric('R')
|
doAssert isAlphaNumeric('R')
|
||||||
doAssert(not isAlphaNumeric('!'))
|
doAssert(not isAlphaNumeric('!'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue