From b979e14d6e70039c9cd88091b9bdd108ecd7d0c4 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 25 Sep 2007 17:10:19 +0000 Subject: added tests for bin/hex/oct conversions --- test/files/run/richs.scala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/files/run/richs.scala') diff --git a/test/files/run/richs.scala b/test/files/run/richs.scala index db8f228843..674ca8fe10 100644 --- a/test/files/run/richs.scala +++ b/test/files/run/richs.scala @@ -53,6 +53,13 @@ object RichIntTest extends RichTest { println(length(m to n)) println(length(n until m)) println(length(n to m)) + + println(16.toBinaryString) // should be "10000" + println(16.toHexString) // should be "10" + println(16.toOctalString) // should be "20" + + println(65537.toHexString) // should be "10001" + println((-1).toHexString) // should be "ffffffff" } } object RichStringTest1 extends RichTest { -- cgit v1.2.3