Skip to content

Commit

Permalink
Fix tests to new scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Aug 6, 2024
1 parent c0b6b0f commit 6ccabea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/pos-java-interop-separate/i6868/MyScala_2.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@MyJava_1("MyScala1", typeA = MyJava_1.MyClassTypeA.B)
@MyJava_1(value = "MyScala1", typeA = MyJava_1.MyClassTypeA.B)
object MyScala {
def a(mj: MyJava_1): Unit = {
println("MyJava")
Expand Down
2 changes: 1 addition & 1 deletion tests/pos/i6151/Test.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Expect.*
@Outcome(ExpectVal)
@Outcome(enm = ExpectVal)
class SimpleTest
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
class ScalaUser {
@JavaAnnot(5)
def f1(): Int = 1

@JavaAnnot(a = 5)
def f2(): Int = 1

@JavaAnnot(5, "foo")
@JavaAnnot(a = 5, b = "foo")
def f3(): Int = 1

@JavaAnnot(5, "foo", 3)
def f4(): Int = 1

@JavaAnnot(5, c = 3)
@JavaAnnot(a = 5, c = 3)
def f5(): Int = 1

@JavaAnnot(5, c = 3, b = "foo")
@JavaAnnot(a = 5, c = 3, b = "foo")
def f6(): Int = 1

@JavaAnnot(b = "foo", c = 3, a = 5)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ScalaUser:
new JavaAnnot(c = _, a = 5, d = _, b = _)
new JavaAnnot(c = _, a = 5, d = _, b = _)
new JavaAnnot(c = _, a = 5, d = _, b = "foo")
new JavaAnnot(c = 3, a = 5, d = _, b = "foo")
new JavaAnnot(c = 3, a = 5, d = _, b = _)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
class ScalaUser {
@JavaAnnot(5)
def f1(): Int = 1

@JavaAnnot(a = 5)
def f2(): Int = 1

@JavaAnnot(5, "foo")
@JavaAnnot(a = 5, b = "foo")
def f3(): Int = 1

@JavaAnnot(5, "foo", 3)
@JavaAnnot(a = 5, b = "foo", c = 3)
def f4(): Int = 1

@JavaAnnot(5, c = 3)
@JavaAnnot(a = 5, c = 3)
def f5(): Int = 1

@JavaAnnot(5, c = 3, b = "foo")
@JavaAnnot(a = 5, c = 3, b = "foo")
def f6(): Int = 1

@JavaAnnot(b = "foo", c = 3, a = 5)
Expand Down

0 comments on commit 6ccabea

Please sign in to comment.