summaryrefslogtreecommitdiff
path: root/test/scanners/python/pleac.expected.raydebug
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanners/python/pleac.expected.raydebug')
-rw-r--r--test/scanners/python/pleac.expected.raydebug28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/scanners/python/pleac.expected.raydebug b/test/scanners/python/pleac.expected.raydebug
index fc88237..d4af49e 100644
--- a/test/scanners/python/pleac.expected.raydebug
+++ b/test/scanners/python/pleac.expected.raydebug
@@ -278,7 +278,7 @@ keyword(for) ident(ln) keyword(in) ident(fileinput)operator(.)ident(input)operat
keyword(for) ident(c) keyword(in) ident(ln)operator(:)
ident(sys)operator(.)ident(stdout)operator(.)ident(write)operator(()ident(c)operator(\))
ident(sys)operator(.)ident(stdout)operator(.)ident(flush)operator(()operator(\))
- ident(select)operator(.)ident(select)operator(()operator([)operator(])operator(,)operator([)operator(])operator(,)operator([)operator(])operator(,) float(0)float(.005) operator(*) ident(DELAY)operator(\))
+ ident(select)operator(.)ident(select)operator(()operator([)operator(])operator(,)operator([)operator(])operator(,)operator([)operator(])operator(,) float(0.005) operator(*) ident(DELAY)operator(\))
comment(#-----------------------------)
comment(# @@PLEAC@@_1.6)
@@ -827,7 +827,7 @@ comment(# @@PLEAC@@_2.3)
comment(#-----------------------------)
ident(rounded) operator(=) predefined(round)operator(()ident(num)operator(\)) comment(# rounds to integer)
comment(#-----------------------------)
-ident(a) operator(=) float(0)float(.255)
+ident(a) operator(=) float(0.255)
ident(b) operator(=) string<delimiter(")content(%.2f)delimiter(")> operator(%) ident(a)
keyword(print) string<delimiter(")content(Unrounded: %f)char(\\n)content(Rounded: %s)delimiter(")> operator(%) operator(()ident(a)operator(,) ident(b)operator(\))
keyword(print) string<delimiter(")content(Unrounded: %f)char(\\n)content(Rounded: %.2f)delimiter(")> operator(%) operator(()ident(a)operator(,) ident(a)operator(\))
@@ -839,7 +839,7 @@ comment(#-----------------------------)
keyword(from) ident(math) keyword(import) ident(floor)operator(,) ident(ceil)
keyword(print) string<delimiter(")content(number)char(\\t)content(int)char(\\t)content(floor)char(\\t)content(ceil)delimiter(")>
-ident(a) operator(=) operator([)float(3)float(.3)operator(,) float(3)float(.5)operator(,) float(3)float(.7)operator(,) operator(-)float(3)float(.3)operator(])
+ident(a) operator(=) operator([)float(3.3)operator(,) float(3.5)operator(,) float(3.7)operator(,) operator(-)float(3.3)operator(])
keyword(for) ident(n) keyword(in) ident(a)operator(:)
keyword(print) string<delimiter(")content(% .1f)char(\\t)content(% .1f)char(\\t)content(% .1f)char(\\t)content(% .1f)delimiter(")> operator(%) operator(()ident(n)operator(,) predefined(int)operator(()ident(n)operator(\))operator(,) ident(floor)operator(()ident(n)operator(\))operator(,) ident(ceil)operator(()ident(n)operator(\))operator(\))
comment(#=> number int floor ceil)
@@ -1018,8 +1018,8 @@ comment(#-----------------------------)
comment(# @@PLEAC@@_2.15)
comment(#-----------------------------)
-ident(a) operator(=) integer(3)operator(+)integer(5)ident(j)
-ident(b) operator(=) integer(2)operator(-)integer(2)ident(j)
+ident(a) operator(=) integer(3)operator(+)imaginary(5j)
+ident(b) operator(=) integer(2)operator(-)imaginary(2j)
ident(c) operator(=) ident(a) operator(*) ident(b)
keyword(print) string<delimiter(")content(c =)delimiter(")>operator(,) ident(c)
comment(#=> c = (16+4j\))
@@ -1028,7 +1028,7 @@ keyword(print) ident(c)operator(.)ident(real)operator(,) ident(c)operator(.)iden
comment(#=> 16.0 4.0 (16-4j\))
comment(#-----------------------------)
keyword(import) ident(cmath)
-keyword(print) ident(cmath)operator(.)ident(sqrt)operator(()integer(3)operator(+)integer(4)ident(j)operator(\))
+keyword(print) ident(cmath)operator(.)ident(sqrt)operator(()integer(3)operator(+)imaginary(4j)operator(\))
comment(#=> (2+1j\))
comment(#-----------------------------)
@@ -1426,7 +1426,7 @@ comment(# @@PLEAC@@_3.10)
comment(#----------------------------- )
comment(# Short Sleeps)
-ident(seconds) operator(=) float(3)float(.1)
+ident(seconds) operator(=) float(3.1)
ident(time)operator(.)ident(sleep)operator(()ident(seconds)operator(\))
keyword(print) string<delimiter(")content(boo)delimiter(")>
@@ -2118,7 +2118,7 @@ keyword(for) ident(term) keyword(in) ident(mylist)operator(:)
ident(matching)operator(.)ident(append)operator(()ident(term)operator(\))
comment(#-----------------------------)
ident(bigs) operator(=) operator([)ident(num) keyword(for) ident(num) keyword(in) ident(nums) keyword(if) ident(num) operator(>) integer(1000000)operator(])
-ident(pigs) operator(=) operator([)ident(user) keyword(for) operator(()ident(user)operator(,) ident(val)operator(\)) keyword(in) ident(users)operator(.)ident(items)operator(()operator(\)) keyword(if) ident(val) operator(>) float(1)ident(e7)operator(])
+ident(pigs) operator(=) operator([)ident(user) keyword(for) operator(()ident(user)operator(,) ident(val)operator(\)) keyword(in) ident(users)operator(.)ident(items)operator(()operator(\)) keyword(if) ident(val) operator(>) float(1e7)operator(])
comment(#-----------------------------)
keyword(import) ident(os)
ident(matching) operator(=) operator([)ident(line) keyword(for) ident(line) keyword(in) ident(os)operator(.)ident(popen)operator(()string<delimiter(")content(who)delimiter(")>operator(\))
@@ -5818,7 +5818,7 @@ keyword(print) ident(hypotenuse)operator(()operator(*)ident(a)operator(\))
comment(#-----------------------------)
ident(both) operator(=) ident(men) operator(+) ident(women)
comment(#-----------------------------)
-ident(nums) operator(=) operator([)float(1)float(.4)operator(,) float(3)float(.5)operator(,) float(6)float(.7)operator(])
+ident(nums) operator(=) operator([)float(1.4)operator(,) float(3.5)operator(,) float(6.7)operator(])
comment(# Provided for demonstration purposes only. Use:)
comment(# ints = [int(num\) for num in nums] )
keyword(def) ident(int_all)operator(()ident(nums)operator(\))operator(:)
@@ -5828,7 +5828,7 @@ keyword(def) ident(int_all)operator(()ident(nums)operator(\))operator(:)
keyword(return) ident(retlist)
ident(ints) operator(=) ident(int_all)operator(()ident(nums)operator(\)) comment(# nums unchanged)
comment(#-----------------------------)
-ident(nums) operator(=) operator([)float(1)float(.4)operator(,) float(3)float(.5)operator(,) float(6)float(.7)operator(])
+ident(nums) operator(=) operator([)float(1.4)operator(,) float(3.5)operator(,) float(6.7)operator(])
keyword(def) ident(trunc_em)operator(()ident(nums)operator(\))operator(:)
keyword(for) ident(i)operator(,)ident(elem) keyword(in) predefined(enumerate)operator(()ident(nums)operator(\))operator(:)
@@ -6669,7 +6669,7 @@ ident(rp) operator(=) ident(employees)operator(.)ident(get)operator(()integer(13
keyword(if) operator(()ident(rp)operator(\))operator(:)
keyword(print) string<delimiter(")content(Employee number 132 is %s.)delimiter(")> operator(%) ident(rp)operator([)string<delimiter(")content(name)delimiter(")>operator(])
-ident(byname)operator([)string<delimiter(")content(Jason)delimiter(")>operator(])operator([)string<delimiter(")content(salary)delimiter(")>operator(]) operator(*=) float(1)float(.035)
+ident(byname)operator([)string<delimiter(")content(Jason)delimiter(")>operator(])operator([)string<delimiter(")content(salary)delimiter(")>operator(]) operator(*=) float(1.035)
ident(peons) operator(=) operator([)ident(r) keyword(for) ident(r) keyword(in) ident(employees)operator(.)ident(values)operator(()operator(\)) keyword(if) ident(r)operator([)string<delimiter(")content(title)delimiter(")>operator(]) operator(==) string<delimiter(")content(peon)delimiter(")>operator(])
ident(tsevens) operator(=) operator([)ident(r) keyword(for) ident(r) keyword(in) ident(employees)operator(.)ident(values)operator(()operator(\)) keyword(if) ident(r)operator([)string<delimiter(")content(age)delimiter(")>operator(]) operator(==) integer(27)operator(])
@@ -8270,7 +8270,7 @@ keyword(class) ident(FixNum)operator(:)
keyword(def) ident(__div__)operator(()pre_constant(self)operator(,) ident(other)operator(\))operator(:)
comment(# Force to use floating point, since 2/3 in Python is 0)
comment(# Don't use float(\) since that will convert strings)
- keyword(return) ident(FixNum)operator(()operator(()pre_constant(self)operator(.)ident(value)operator(+)float(0)float(.0)operator(\)) operator(/) ident(other)operator(.)ident(value)operator(,)
+ keyword(return) ident(FixNum)operator(()operator(()pre_constant(self)operator(.)ident(value)operator(+)float(0.0)operator(\)) operator(/) ident(other)operator(.)ident(value)operator(,)
predefined(max)operator(()pre_constant(self)operator(.)ident(places)operator(,) ident(other)operator(.)ident(places)operator(\))operator(\))
keyword(def) ident(__str__)operator(()pre_constant(self)operator(\))operator(:)
@@ -8916,7 +8916,7 @@ keyword(except) ident(KeyboardError)operator(:)
comment(#----------------------------------------)
comment(# @@PLEAC@@_15.7)
-keyword(print) string<delimiter(")content(\\a)content(Wake up!)char(\\n)delimiter(")>operator(;)
+keyword(print) string<delimiter(")char(\\a)content(Wake up!)char(\\n)delimiter(")>operator(;)
comment(#----------------------------------------)
comment(# @@INCOMPLETE@@)
@@ -9453,7 +9453,7 @@ keyword(import) ident(sys)
keyword(import) ident(signal)
keyword(def) ident(ding)operator(()ident(signum)operator(,) ident(frame)operator(\))operator(:)
- keyword(print) string<delimiter(")content(\\a)content(Enter your name!)delimiter(")>
+ keyword(print) string<delimiter(")char(\\a)content(Enter your name!)delimiter(")>
keyword(return)
ident(signal)operator(.)ident(signal)operator(()ident(signal)operator(.)ident(SIGINT)operator(,) ident(ding)operator(\))