summaryrefslogtreecommitdiff
path: root/test/files/run/interpolation.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-01-16 17:49:12 +0100
committerMartin Odersky <odersky@gmail.com>2012-01-16 17:49:37 +0100
commit6ea9f72ffd0e1b606cb5ad4670b4db8330fa29b9 (patch)
treef0e187995ccd498928e521be7653a7eb86f85ea2 /test/files/run/interpolation.check
parentb0de5f13329aa24752fae079c50cc0584471379e (diff)
downloadscala-6ea9f72ffd0e1b606cb5ad4670b4db8330fa29b9.tar.gz
scala-6ea9f72ffd0e1b606cb5ad4670b4db8330fa29b9.tar.bz2
scala-6ea9f72ffd0e1b606cb5ad4670b4db8330fa29b9.zip
A string interpolation implementation of SIP-11.
This is the complete implementation of SIP-11, in its version of 15-Jan-2012. For now, the interpolations are enabled only under the -Xexperimental flag.
Diffstat (limited to 'test/files/run/interpolation.check')
-rw-r--r--test/files/run/interpolation.check20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/interpolation.check b/test/files/run/interpolation.check
new file mode 100644
index 0000000000..4c34e4c8c8
--- /dev/null
+++ b/test/files/run/interpolation.check
@@ -0,0 +1,20 @@
+Bob is 1 years old
+Bob is 1 years old
+Bob will be 2 years old
+Bob will be 2 years old
+Bob is 12 years old
+Bob is 12 years old
+Bob will be 13 years old
+Bob will be 13 years old
+Bob is 123 years old
+Bob is 123 years old
+Bob will be 124 years old
+Bob will be 124 years old
+Best price: 10.0
+Best price: 10.00
+10.0% discount included
+10.00% discount included
+Best price: 13.345
+Best price: 13.35
+13.345% discount included
+13.35% discount included