From 288a684174b4cf6bcfa786f017320125a4bcc91f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 26 Jun 2009 14:29:16 +0000 Subject: Fixed the fact that reflective calls had logica... Fixed the fact that reflective calls had logical and arithmetic right shift swapped. Modified test case to use a value that doesn't have identical output for both shifts. Grumbled to self that test cases which fail to test are markedly worse than no tests at all. --- test/files/run/issue192.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/files/run/issue192.scala b/test/files/run/issue192.scala index 8756e6a545..f36f6aead3 100644 --- a/test/files/run/issue192.scala +++ b/test/files/run/issue192.scala @@ -63,8 +63,8 @@ object Test extends Application { print("f17 = "); println(f17(false) == (false && true)) print("f18 = "); println(f18(4) == (4 << 7)) - print("f19 = "); println(f19(4) == (4 >> 7)) - print("f20 = "); println(f20(4) == (4 >>> 7)) + print("f19 = "); println(f19(-4) == (-4 >> 7)) + print("f20 = "); println(f20(-4) == (-4 >>> 7)) print("f21 = "); println(f21(4.2) == (4.2.toByte)) print("f22 = "); println(f22(4.2) == (4.2.toShort)) -- cgit v1.2.3