summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-10.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-11-01 16:03:28 +0000
committermihaylov <mihaylov@epfl.ch>2006-11-01 16:03:28 +0000
commit257a1845d3db3477a0b5939e94d77b0495d89561 (patch)
tree0aedf35621282407918e0f56b3b5ffc0952e6a14 /test/files/run/Course-2002-10.scala
parent8b0cd5cf7c2a682dd70d6b8ea32b521015bf2269 (diff)
downloadscala-257a1845d3db3477a0b5939e94d77b0495d89561.tar.gz
scala-257a1845d3db3477a0b5939e94d77b0495d89561.tar.bz2
scala-257a1845d3db3477a0b5939e94d77b0495d89561.zip
Refactored portability support
Diffstat (limited to 'test/files/run/Course-2002-10.scala')
-rw-r--r--test/files/run/Course-2002-10.scala14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/files/run/Course-2002-10.scala b/test/files/run/Course-2002-10.scala
index cfd4f02e99..258b6dc8fd 100644
--- a/test/files/run/Course-2002-10.scala
+++ b/test/files/run/Course-2002-10.scala
@@ -3,6 +3,8 @@
//############################################################################
// $Id$
+import compat.Math.{PI, log}
+
object M0 {
def addStream (s1: Stream[int], s2: Stream[int]): Stream[int] =
@@ -72,9 +74,9 @@ object M1 {
i = i + 1;
}
Console.print("pi = ");
- Console.print(str(Math.PI) + ", ");
- Console.print(str(Math.PI) + ", ");
- Console.print(str(Math.PI) + "\n");
+ Console.print(str(PI) + ", ");
+ Console.print(str(PI) + ", ");
+ Console.print(str(PI) + "\n");
Console.println;
i = 0;
while (i < 10) {
@@ -85,9 +87,9 @@ object M1 {
i = i + 1;
}
Console.print("ln = ");
- Console.print(str(Math.log(2)) + ", ");
- Console.print(str(Math.log(2)) + ", ");
- Console.print(str(Math.log(2)) + "\n");
+ Console.print(str(log(2)) + ", ");
+ Console.print(str(log(2)) + ", ");
+ Console.print(str(log(2)) + "\n");
Console.println;
}
}