diff options
author | buraq <buraq@epfl.ch> | 2004-04-07 12:35:22 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-04-07 12:35:22 +0000 |
commit | 645f87a5a839685fde5ee9fbeb55d242a32445d4 (patch) | |
tree | 7c63059b6234130f61818f2be370d072f92d964a /test/files/run | |
parent | 39d7ffe5467a5e25e22cbe6baaf976acfa72bc88 (diff) | |
download | scala-645f87a5a839685fde5ee9fbeb55d242a32445d4.tar.gz scala-645f87a5a839685fde5ee9fbeb55d242a32445d4.tar.bz2 scala-645f87a5a839685fde5ee9fbeb55d242a32445d4.zip |
added test case for fixed treatment of SU
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/literals.check | 2 | ||||
-rw-r--r-- | test/files/run/literals.scala | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/literals.check b/test/files/run/literals.check index 8fd52de35f..d4b6aa1823 100644 --- a/test/files/run/literals.check +++ b/test/files/run/literals.check @@ -59,3 +59,5 @@ test 1e-9d == 1.0e-9 was successful test 1e137 == 1.0e137 was successful test 1.asInstanceOf[double] == 1.0 was successful test 1l.asInstanceOf[double] == 1.0 was successful + +test "\u001a".length() was successful diff --git a/test/files/run/literals.scala b/test/files/run/literals.scala index a44c391c7f..91d319b531 100644 --- a/test/files/run/literals.scala +++ b/test/files/run/literals.scala @@ -115,6 +115,9 @@ object Test { check_success("1e137 == 1.0e137", 1e137, 1.0e137); check_success("1.asInstanceOf[double] == 1.0", 1.asInstanceOf[double], 1.0); check_success("1l.asInstanceOf[double] == 1.0", 1l.asInstanceOf[double], 1.0); + + out.println(); + check_success("\"\\u001a\".length()", "\u001a".length(), 1); } } |