Change package structure

This commit is contained in:
2026-03-20 09:47:23 +01:00
parent eaff1889a6
commit d73cd035cd
54 changed files with 74 additions and 52 deletions
@@ -0,0 +1,16 @@
package ninetyNineScalaProblems.lists
import scala.compiletime.ops.boolean
class Problem12Suite extends munit.FunSuite:
List(
(List((1 ,1), (1, 2), (1, 3), (1, 4)), List(1, 2, 3, 4)),
(List(), List()),
(List((1, 1), (1, 2), (1, 3), (1, 2)), List(1, 2, 3, 2)),
(List((1, 1)), List(1)),
(List((2, 1)), List(1, 1)),
(List((4, 1), (1,2), (2, 3), (2, 1), (1, 4), (4, 5)), List(1, 1, 1, 1, 2, 3, 3, 1, 1, 4, 5, 5, 5, 5))
).foreach:
case (list, expected) =>
test(s"runLengthDecode returns [$expected]"):
assertEquals(Problem12.runLengthDecode(list), expected)