diff --git a/Examples/python/constants/example.i b/Examples/python/constants/example.i index 9b04ebc1d..29a1a7f11 100644 --- a/Examples/python/constants/example.i +++ b/Examples/python/constants/example.i @@ -6,7 +6,9 @@ #define ICONST 42 #define FCONST 2.1828 #define CCONST 'x' +#define CCONST2 '\n' #define SCONST "Hello World" +#define SCONST2 "\"Hello World\"" /* This should work just fine */ #define EXPR ICONST + 3*(FCONST) diff --git a/Examples/python/constants/example.py b/Examples/python/constants/example.py index f58f2366b..f13c4c373 100644 --- a/Examples/python/constants/example.py +++ b/Examples/python/constants/example.py @@ -2,13 +2,15 @@ import example -print "ICONST =", example.ICONST, "(should be 42)" -print "FCONST =", example.FCONST, "(should be 2.1828)" -print "CCONST =", example.CCONST, "(should be 'x')" -print "SCONST =", example.SCONST, "(should be 'Hello World')" -print "EXPR =", example.EXPR, "(should be 48.5484)" -print "iconst =", example.iconst, "(should be 37)" -print "fconst =", example.fconst, "(should be 3.14)" +print "ICONST =", example.ICONST, "(should be 42)" +print "FCONST =", example.FCONST, "(should be 2.1828)" +print "CCONST =", example.CCONST, "(should be 'x')" +print "CCONST2 =", example.CCONST2, "(this should be on a new line)" +print "SCONST =", example.SCONST, "(should be 'Hello World')" +print "SCONST2 =", example.SCONST2, "(should be '\"Hello World\"')" +print "EXPR =", example.EXPR, "(should be 48.5484)" +print "iconst =", example.iconst, "(should be 37)" +print "fconst =", example.fconst, "(should be 3.14)" try: print "EXTERN = ", example.EXTERN, "(Arg! This shouldn't print anything)"