summaryrefslogtreecommitdiff
path: root/test/scanners/python/python3.expected.raydebug
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanners/python/python3.expected.raydebug')
-rw-r--r--test/scanners/python/python3.expected.raydebug19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/scanners/python/python3.expected.raydebug b/test/scanners/python/python3.expected.raydebug
new file mode 100644
index 0000000..6a9c056
--- /dev/null
+++ b/test/scanners/python/python3.expected.raydebug
@@ -0,0 +1,19 @@
+ident(Old)operator(:) keyword(print) string<delimiter(")content(The answer is)delimiter(")>operator(,) integer(2)operator(*)integer(2)
+ident(New)operator(:) ident(print)operator(()string<delimiter(")content(The answer is)delimiter(")>operator(,) integer(2)operator(*)integer(2)operator(\))
+
+ident(Old)operator(:) keyword(print) ident(x)operator(,) comment(# Trailing comma suppresses newline)
+ident(New)operator(:) ident(print)operator(()ident(x)operator(,) ident(end)operator(=)string<delimiter(")content( )delimiter(")>operator(\)) comment(# Appends a space instead of a newline)
+
+ident(Old)operator(:) keyword(print) comment(# Prints a newline)
+ident(New)operator(:) ident(print)operator(()operator(\)) comment(# You must call the function!)
+
+ident(Old)operator(:) keyword(print) operator(>>)ident(sys)operator(.)ident(stderr)operator(,) string<delimiter(")content(fatal error)delimiter(")>
+ident(New)operator(:) ident(print)operator(()string<delimiter(")content(fatal error)delimiter(")>operator(,) ident(file)operator(=)ident(sys)operator(.)ident(stderr)operator(\))
+
+ident(Old)operator(:) keyword(print) operator(()ident(x)operator(,) ident(y)operator(\)) comment(# prints repr((x, y\)\))
+ident(New)operator(:) ident(print)operator(()operator(()ident(x)operator(,) ident(y)operator(\))operator(\)) comment(# Not the same as print(x, y\)!)
+
+ident(print)operator(()string<delimiter(")content(There are <)delimiter(")>operator(,) integer(2)operator(**)integer(32)operator(,) string<delimiter(")content(> possibilities!)delimiter(")>operator(,) ident(sep)operator(=)string<delimiter(")delimiter(")>operator(\))
+
+
+string<modifier(b)delimiter(")content(byte string)content(\\9)content(9)char(\\")delimiter(")> \ No newline at end of file