Raw string literal changes in paper N3077 changes delimiters to use round brackets instead of square brackets
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@12152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da182a09f5
commit
adffcd60e1
4 changed files with 83 additions and 39 deletions
|
|
@ -0,0 +1,50 @@
|
|||
from cpp0x_raw_string_literals import *
|
||||
|
||||
if cvar.L != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.u8 != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.u != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if UStruct.U != 100:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
if cvar.R != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.LR != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.u8R != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.uR != 100:
|
||||
raise RuntimeError
|
||||
|
||||
if URStruct.UR != 100:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
if cvar.aa != "Wide string":
|
||||
raise RuntimeError
|
||||
|
||||
if cvar.bb != "UTF-8 string":
|
||||
raise RuntimeError, cvar.wide
|
||||
|
||||
if cvar.xx != ")I'm an \"ascii\" \\ string.":
|
||||
raise RuntimeError, cvar.xx
|
||||
|
||||
if cvar.ee != ")I'm an \"ascii\" \\ string.":
|
||||
raise RuntimeError, cvar.ee
|
||||
|
||||
if cvar.ff != "I'm a \"raw wide\" \\ string.":
|
||||
raise RuntimeError, cvar.ff
|
||||
|
||||
if cvar.gg != "I'm a \"raw UTF-8\" \\ string.":
|
||||
raise RuntimeError, cvar.gg
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue