aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-01 00:22:06 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitf7009628cca1ad8461c353f44ae5c167afcd7612 (patch)
tree9526e36db3b197e3d420d6252834203833710948 /engines/director/lingo
parent3882a54ade751c8ca6ff25ba5087f626fb13f153 (diff)
downloadscummvm-rg350-f7009628cca1ad8461c353f44ae5c167afcd7612.tar.gz
scummvm-rg350-f7009628cca1ad8461c353f44ae5c167afcd7612.tar.bz2
scummvm-rg350-f7009628cca1ad8461c353f44ae5c167afcd7612.zip
DIRECTOR: Lingo: Added tests for type conversion
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/tests/math.lingo5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/lingo/tests/math.lingo b/engines/director/lingo/tests/math.lingo
index d4b3d96105..e1a877a4a4 100644
--- a/engines/director/lingo/tests/math.lingo
+++ b/engines/director/lingo/tests/math.lingo
@@ -10,3 +10,8 @@ put cos(z2)
set x = 2 + 3 * (4 / 2)
put x
+
+-- Type conversion
+put (1024/4096)*100 -- 0
+put (1024/4096)*100.0 -- 0.0
+put ((1024*1.0)/4096)*100.0 -- 25.0