From 52e3bb1eed418a554a26fb4e4ace3254b95f8766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sun, 8 Aug 2021 20:07:33 +0200 Subject: [PATCH] Fix tests --- .../net/sourceforge/pmd/lang/modelica/ast/ModelicaCoordsTest.kt | 2 +- .../kotlin/net/sourceforge/pmd/lang/scala/ast/ScalaTreeTests.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd-modelica/src/test/kotlin/net/sourceforge/pmd/lang/modelica/ast/ModelicaCoordsTest.kt b/pmd-modelica/src/test/kotlin/net/sourceforge/pmd/lang/modelica/ast/ModelicaCoordsTest.kt index 69e078bdca..cdbb3a9f5b 100644 --- a/pmd-modelica/src/test/kotlin/net/sourceforge/pmd/lang/modelica/ast/ModelicaCoordsTest.kt +++ b/pmd-modelica/src/test/kotlin/net/sourceforge/pmd/lang/modelica/ast/ModelicaCoordsTest.kt @@ -110,7 +110,7 @@ end TestPackage; }) fun String.parseModelica(): ASTStoredDefinition = - ModelicaParsingHelper.DEFAULT.parse(this, ":dummy") + ModelicaParsingHelper.DEFAULT.parse(this) fun Node.assertBounds(bline: Int, bcol: Int, eline: Int, ecol: Int) { this::getBeginLine shouldBe bline diff --git a/pmd-scala-modules/pmd-scala-common/src/test/kotlin/net/sourceforge/pmd/lang/scala/ast/ScalaTreeTests.kt b/pmd-scala-modules/pmd-scala-common/src/test/kotlin/net/sourceforge/pmd/lang/scala/ast/ScalaTreeTests.kt index cad6ba9066..4e23e8a6e7 100644 --- a/pmd-scala-modules/pmd-scala-common/src/test/kotlin/net/sourceforge/pmd/lang/scala/ast/ScalaTreeTests.kt +++ b/pmd-scala-modules/pmd-scala-common/src/test/kotlin/net/sourceforge/pmd/lang/scala/ast/ScalaTreeTests.kt @@ -81,7 +81,7 @@ class Foo { }) fun String.parseScala(): ASTSource = - ScalaParsingHelper.DEFAULT.parse(this, ":dummy") + ScalaParsingHelper.DEFAULT.parse(this) fun Node.assertBounds(bline: Int, bcol: Int, eline: Int, ecol: Int) {