From b47ed354cf13fa9b1607d6c638224782d111fc5c Mon Sep 17 00:00:00 2001 From: michelou Date: Fri, 17 Aug 2007 14:22:22 +0000 Subject: updated several tests for MSIL --- test/files/run/Course-2002-06.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files/run/Course-2002-06.scala') diff --git a/test/files/run/Course-2002-06.scala b/test/files/run/Course-2002-06.scala index 47851988c0..e2cfb6daf4 100644 --- a/test/files/run/Course-2002-06.scala +++ b/test/files/run/Course-2002-06.scala @@ -11,7 +11,7 @@ class Vector (_x: Double, _y: Double) { def *(scalar: Double): Vector = new Vector(x * scalar, y * scalar); def -(that: Vector): Vector = new Vector(x - that.x, y - that.y); def /(scalar: Double): Vector = new Vector(x / scalar, y / scalar); - def norm: Double = compat.Math.sqrt(x * x + y * y); + def norm: Double = Math.sqrt(x * x + y * y); } //############################################################################ @@ -88,7 +88,7 @@ class PostScript (filename: String, _width: Double, _height: Double) def mm2ps(x: Double) : Double = round(x * 72.0 / 25.4); def round(x: Double): Double = - compat.Math.floor(x * 100.0 + 0.5) / 100.0; + Math.floor(x * 100.0 + 0.5) / 100.0; def scaleAndCenter(frm: Frame, ratio:Double): Frame = { val currentRatio = frm.edgeX.norm / frm.edgeY.norm; -- cgit v1.2.3