From 41576a4f36e18091bd0303888824974be6cd3b88 Mon Sep 17 00:00:00 2001 From: Narayanan Date: Tue, 27 Aug 2019 10:32:11 +0530 Subject: [PATCH] Update Formatting.scala escaping octals not supported in Scala 2.13.0 --- src/main/scala/stdlib/Formatting.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/stdlib/Formatting.scala b/src/main/scala/stdlib/Formatting.scala index 6938840d..770163aa 100644 --- a/src/main/scala/stdlib/Formatting.scala +++ b/src/main/scala/stdlib/Formatting.scala @@ -36,8 +36,8 @@ object Formatting extends FlatSpec with Matchers with org.scalaexercises.definit */ def escapeSequenceFormatting(res0: String, res1: String, res2: String, res3: String) { val c = '\u0061' //unicode for a - val d = '\141' //octal for a - val e = '\"' + val d = '\141' //octal for a; not supported in scala 2.13.0, use '\u0061' instead + val e = '\"' // can also be specified as '"' (there is no need to escape the double quote) val f = '\\' "%c".format(c) should be(res0)