From 98212511a1e0fe9c8711f49d888c31a5e0b255a7 Mon Sep 17 00:00:00 2001 From: Julian Peeters Date: Sun, 24 Dec 2023 16:10:12 -0800 Subject: [PATCH] Fix test in CI Use None instead of Some in order to avoid a Some value, which would otherwise be printed differently accross the test matrix. --- .../scala/tests/markdown/VariablePrinterSuite.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/src/test/scala/tests/markdown/VariablePrinterSuite.scala b/tests/unit/src/test/scala/tests/markdown/VariablePrinterSuite.scala index 896e07b51..0aa552b71 100644 --- a/tests/unit/src/test/scala/tests/markdown/VariablePrinterSuite.scala +++ b/tests/unit/src/test/scala/tests/markdown/VariablePrinterSuite.scala @@ -7,15 +7,15 @@ class VariablePrinterSuite extends BaseMarkdownSuite { "single-line-comment", """ |```scala mdoc - |import scala.Some // an import statement - |val a = Some(1) // a variable + |import scala.None // an import statement + |val a = None // a variable |val b = 2 // another variable |``` """.stripMargin, """|```scala - |import scala.Some // an import statement - |val a = Some(1) // a variable - |// a: Some[Int] = Some(value = 1) + |import scala.None // an import statement + |val a = None // a variable + |// a: None.type = None |val b = 2 // another variable |// b: Int = 2 |```