summaryrefslogtreecommitdiff
path: root/test/files/run/literals.check
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2004-03-01 16:00:32 +0000
committermichelou <michelou@epfl.ch>2004-03-01 16:00:32 +0000
commitcda9593740f7986e88800c021b48e0a67ff73b44 (patch)
treee7d22a330c5160bab2204679c3dd0d74b0409159 /test/files/run/literals.check
parentfda2eeab2e738347e3207a2b78a2834b29781192 (diff)
downloadscala-cda9593740f7986e88800c021b48e0a67ff73b44.tar.gz
scala-cda9593740f7986e88800c021b48e0a67ff73b44.tar.bz2
scala-cda9593740f7986e88800c021b48e0a67ff73b44.zip
- added test cases for Scala literals such as J...
- added test cases for Scala literals such as Java-like floating-point literals (see bug #296).
Diffstat (limited to 'test/files/run/literals.check')
-rw-r--r--test/files/run/literals.check16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/literals.check b/test/files/run/literals.check
new file mode 100644
index 0000000000..43bd7101e7
--- /dev/null
+++ b/test/files/run/literals.check
@@ -0,0 +1,16 @@
+test 1e1f == 10.0f was successful
+test 2.f == 2.0f was successful
+test .3f == 0.3f was successful
+test 0f == 0.0f was successful
+test 3.14f == 3.14f was successful
+test 6.022e23f == 6.022e23f was successful
+test 09f == 9.0f was successful
+test 1e1 == 10.0 was successful
+test 2. == 2.0 was successful
+test 2.d == 2.0 was successful
+test .3 == 0.3 was successful
+test 0.0 == 0.0 was successful
+test 0d == 0.0 was successful
+test 3.14 == 3.14 was successful
+test 1e-9d == 1.0e-9 was successful
+test 1e137 == 1.0e137 was successful