diff options
-rw-r--r-- | test/files/run/richs.check | 5 | ||||
-rw-r--r-- | test/files/run/richs.scala | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/richs.check b/test/files/run/richs.check index 2aa7e9467d..a970a814b1 100644 --- a/test/files/run/richs.check +++ b/test/files/run/richs.check @@ -12,6 +12,11 @@ RichIntTest: 13 0 0 +10000 +10 +20 +10001 +ffffffff RichStringTest1: s1: abc 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 { |