aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/Coder.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/Coder.scala')
-rw-r--r--tests/pos/Coder.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pos/Coder.scala b/tests/pos/Coder.scala
index 3fcda1afd..a47dcf3c9 100644
--- a/tests/pos/Coder.scala
+++ b/tests/pos/Coder.scala
@@ -38,11 +38,12 @@ class Coder(words: List[String]) {
def encode(number: String): Set[List[String]] =
if (number.isEmpty) Set(Nil)
else {
- val xs = for {
+ val xs = (for {
splitPoint <- 1 to number.length
word <- wordsForNum(number take splitPoint)
rest <- encode(number drop splitPoint)
} yield word :: rest
+ )
xs.toSet
}