From f7009628cca1ad8461c353f44ae5c167afcd7612 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 1 Aug 2016 00:22:06 +0300 Subject: DIRECTOR: Lingo: Added tests for type conversion --- engines/director/lingo/tests/math.lingo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') 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 -- cgit v1.2.3