From 1291803c80615c31540a847c09aabfa69b8b2302 Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Fri, 26 Jul 2024 09:17:57 +0100 Subject: [PATCH] Initialise map differently --- .../tests/worksheets/EvaluatedMarkdownDocumentSuite.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/worksheets/src/test/scala/tests/worksheets/EvaluatedMarkdownDocumentSuite.scala b/tests/worksheets/src/test/scala/tests/worksheets/EvaluatedMarkdownDocumentSuite.scala index 6d1a9e268..8d98bf03f 100644 --- a/tests/worksheets/src/test/scala/tests/worksheets/EvaluatedMarkdownDocumentSuite.scala +++ b/tests/worksheets/src/test/scala/tests/worksheets/EvaluatedMarkdownDocumentSuite.scala @@ -62,7 +62,9 @@ class EvaluatedMarkdownDocumentSuite extends BaseSuite { |``` """.stripMargin - val variables = java.util.Map.of("HELLO", "1", "WORLD", "2") + val variables = new java.util.HashMap[String, String]() + variables.put("HELLO", "1") + variables.put("WORLD", "2") val evaluated = mdoc.evaluateMarkdownDocument("README.md", document, variables)