Skip to content

Commit 9ac3727

Browse files
committed
Text-to-text test for Scala 2, #SCL-23793
1 parent c501036 commit 9ac3727

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

scala/scala-impl/test/org/jetbrains/plugins/scala/text/TextToTextTestBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ abstract class TextToTextTestBase(dependencies: Seq[DependencyDescription],
103103
println(s"Testing $total classes:")
104104

105105
classes.zipWithIndex.foreach { case (cls, i) =>
106-
println(f"$i%04d/$total%s: ${cls.qualifiedName}")
106+
println(f"${i + 1}%04d/$total%s: ${cls.qualifiedName}")
107107

108108
Assert.assertTrue("Must be in a compiled file: ${cls.qualifiedName}", cls.isInCompiledFile)
109109

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.jetbrains.plugins.scala.text.scala2
2+
3+
import org.jetbrains.plugins.scala.DependencyManagerBase.RichStr
4+
import org.jetbrains.plugins.scala.text.TextToTextTestBase
5+
6+
class JsoniterTest extends TextToTextTestBase(
7+
Seq(
8+
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.35.1"
9+
),
10+
Seq("com.github.plokhotnyuk.jsoniter_scala"), Set.empty, 15,
11+
Set.empty
12+
)

0 commit comments

Comments
 (0)