diff options
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/console.check | 3 | ||||
-rw-r--r-- | test/files/jvm/console.scala | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/jvm/console.check b/test/files/jvm/console.check new file mode 100644 index 0000000000..ef7c169844 --- /dev/null +++ b/test/files/jvm/console.check @@ -0,0 +1,3 @@ +true11.0.. +1 +Argument nr. 1 has value 3.33 diff --git a/test/files/jvm/console.scala b/test/files/jvm/console.scala new file mode 100644 index 0000000000..953a60f7bf --- /dev/null +++ b/test/files/jvm/console.scala @@ -0,0 +1,14 @@ + +/** Test scala.Console functionality. */ +object Test extends Application { + + import Console._ + print(true) + print(1) + print(1.0) + flush + println("..") + println(1) + printf("Argument nr. {0,number} has value {1,number,#.##}\n", + 1, 10.0/3) +} |