Skip to content

Commit 377dde3

Browse files
committed
wip add check files for run tests
1 parent 5dcc7f5 commit 377dde3

26 files changed

+193
-26
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Assertion passed: found "cow1" + "true0"
2+
Assertion passed: found "cow2" + "true0"
3+
Assertion passed: found "cow1" + "true0"
4+
Assertion passed: found "cow2" + "true0"
5+
Assertion passed: found "cow1" + "true0"
6+
Assertion passed: found "cow2" + "true0"
7+
Assertion passed: found "hello31337" + "true0"
8+
Assertion passed: found "cow1true" + "0"
9+
Assertion passed: found "cow2true" + "0"
10+
Assertion passed: found "cow2false" + "0"
11+
Assertion passed: found "cow1true" + "0"
12+
Assertion passed: found "cow2true" + "0"
13+
Assertion passed: found "cow2false" + "0"
14+
Assertion passed: found "cow1true" + "0"
15+
Assertion passed: found "cow2true" + "0"
16+
Assertion passed: found "cow2false" + "0"
17+
Assertion passed: found "hello31337false" + "0"
18+
Assertion passed: found "hello31337false12345"
19+
20+
public unroll.Unrolled(java.lang.String,int)
21+
public unroll.Unrolled(java.lang.String,int,boolean)
22+
public unroll.Unrolled(java.lang.String,int,boolean,long)
23+
Assertion passed: found "cow1true0"
24+
Assertion passed: found "cow2true0"
25+
Assertion passed: found "cow2false0"
26+
Assertion passed: found "cow2false9"
27+
Assertion passed: found "cow1true0"
28+
Assertion passed: found "cow2true0"
29+
Assertion passed: found "cow2false0"
30+
Assertion passed: found "cow2false9"
31+
Assertion passed: found "cow1true0"
32+
Assertion passed: found "cow2true0"
33+
Assertion passed: found "cow2false0"
34+
Assertion passed: found "cow2false9"

tests/run/unroll-caseclass-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ object UnrollTestPlatformSpecificV3{
3030
"hello2false3"
3131
)
3232

33-
cls.getConstructors.foreach(println)
33+
cls.getConstructors.map(_.toString).sorted.foreach(println)
3434
}
3535
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow" + "1true0"
2+
Assertion passed: found "cow1true" + "0"
3+
Assertion passed: found "cow2true" + "0"
4+
Assertion passed: found "cow2false" + "0"
5+
public boolean unroll.Unrolled.foo$default$3()
6+
public final java.lang.String unroll.Unrolled.foo(java.lang.String)
7+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean)
8+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,long)
9+
public int unroll.Unrolled.foo$default$2()
10+
public long unroll.Unrolled.foo$default$4()
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-classMethod-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ object UnrollTestPlatformSpecificV3{
2727
"hello2false3"
2828
)
2929

30-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
30+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
3131
}
3232
}

tests/run/unroll-clause-interleaving.check

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow" + "1true0"
2+
Assertion passed: found "cow1true" + "0"
3+
Assertion passed: found "cow2true" + "0"
4+
Assertion passed: found "cow2false" + "0"
5+
public boolean unroll.Unrolled.foo$default$3()
6+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,long,scala.Function1)
7+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,scala.Function1)
8+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,scala.Function1)
9+
public int unroll.Unrolled.foo$default$2()
10+
public long unroll.Unrolled.foo$default$4()
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-curriedMethod-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ object UnrollTestPlatformSpecificV3{
2626
"hello2false3"
2727
)
2828

29-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
29+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow" + "1true0"
2+
Assertion passed: found "cow1true" + "0"
3+
Assertion passed: found "cow2true" + "0"
4+
Assertion passed: found "cow2false" + "0"
5+
public boolean unroll.Unrolled.foo$default$3()
6+
public final java.lang.String unroll.Unrolled.foo(java.lang.Object)
7+
public final java.lang.String unroll.Unrolled.foo(java.lang.Object,int,boolean)
8+
public final java.lang.String unroll.Unrolled.foo(java.lang.Object,int,boolean,long)
9+
public int unroll.Unrolled.foo$default$2()
10+
public long unroll.Unrolled.foo$default$4()
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-genericMethod-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object UnrollTestPlatformSpecificV3{
2323
.invoke(instance, "hello", 2: Integer, java.lang.Boolean.FALSE, 3: Integer) ==
2424
"hello2false3"
2525
)
26-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
26+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
2727

2828
}
2929
}

tests/run/unroll-inferredFinal.check

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow" + "1true0"
2+
Assertion passed: found "cow1true" + "0"
3+
Assertion passed: found "cow2true" + "0"
4+
Assertion passed: found "cow2false" + "0"
5+
public boolean unroll.Unrolled.foo$default$3()
6+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,long,scala.Function1)
7+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,scala.Function1)
8+
public final java.lang.String unroll.Unrolled.foo(java.lang.String,scala.Function1)
9+
public int unroll.Unrolled.foo$default$2()
10+
public long unroll.Unrolled.foo$default$4()
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-methodWithImplicit-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object UnrollTestPlatformSpecificV3{
2525
"hello2false3"
2626
)
2727

28-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
28+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
2929

3030
}
3131
}

tests/run/unroll-multiple.check

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Assertion passed: found "cow1" + "true0"
2+
Assertion passed: found "cow2" + "true0"
3+
Assertion passed: found "cow1true" + "0"
4+
Assertion passed: found "cow2true" + "0"
5+
Assertion passed: found "cow2false" + "0"
6+
public int unroll.Unrolled$.foo$default$2()
7+
public boolean unroll.Unrolled$.foo$default$3()
8+
public long unroll.Unrolled$.foo$default$4()
9+
public final java.lang.String unroll.Unrolled$.foo(java.lang.String,int)
10+
public final java.lang.String unroll.Unrolled$.foo(java.lang.String,int,boolean)
11+
public final java.lang.String unroll.Unrolled$.foo(java.lang.String,int,boolean,long)
12+
public static boolean unroll.Unrolled.foo$default$3()
13+
public static int unroll.Unrolled.foo$default$2()
14+
public static java.lang.String unroll.Unrolled.foo(java.lang.String,int)
15+
public static java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean)
16+
public static java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,long)
17+
public static long unroll.Unrolled.foo$default$4()
18+
Assertion passed: found "cow1true0"
19+
Assertion passed: found "cow2true0"
20+
Assertion passed: found "cow2false0"
21+
Assertion passed: found "cow2false3"

tests/run/unroll-objectMethod-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object UnrollTestPlatformSpecificV3{
2828

2929
// Make sure static forwarder methods are generated
3030
val staticCls = Class.forName("unroll.Unrolled")
31-
staticCls.getMethods.filter(_.getName.contains("foo")).foreach(println)
31+
staticCls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
3232

3333
assert(scala.util.Try(staticCls.getMethod("foo", classOf[String])).isFailure)
3434
assert(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Assertion passed: found "cow1" + "true0"
2+
Assertion passed: found "cow2" + "true0"
3+
Assertion passed: found "cow1true" + "0"
4+
Assertion passed: found "cow2true" + "0"
5+
Assertion passed: found "cow2false" + "0"
6+
7+
public unroll.Unrolled(java.lang.String,int)
8+
public unroll.Unrolled(java.lang.String,int,boolean)
9+
public unroll.Unrolled(java.lang.String,int,boolean,long)
10+
Assertion passed: found "cow1true0"
11+
Assertion passed: found "cow2true0"
12+
Assertion passed: found "cow2false0"
13+
Assertion passed: found "cow2false3"

tests/run/unroll-primaryConstructor-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ object UnrollTestPlatformSpecificV3{
3030
"hello2false3"
3131
)
3232

33-
cls.getConstructors.foreach(println)
33+
cls.getConstructors.map(_.toString).sorted.foreach(println)
3434
}
3535
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow" + "1true0"
2+
Assertion passed: found "cow1true" + "0"
3+
Assertion passed: found "cow2true" + "0"
4+
Assertion passed: found "cow2false" + "0"
5+
public boolean unroll.Unrolled.foo$default$4(scala.Function1)
6+
public final java.lang.String unroll.Unrolled.foo(scala.Function1,java.lang.String)
7+
public final java.lang.String unroll.Unrolled.foo(scala.Function1,java.lang.String,int,boolean)
8+
public final java.lang.String unroll.Unrolled.foo(scala.Function1,java.lang.String,int,boolean,long)
9+
public int unroll.Unrolled.foo$default$3(scala.Function1)
10+
public long unroll.Unrolled.foo$default$5(scala.Function1)
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-secondParameterList-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ object UnrollTestPlatformSpecificV3{
2727
"hello2false3"
2828
)
2929

30-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
30+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
3131
}
3232
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Assertion passed: found "cow1" + "true0"
2+
Assertion passed: found "cow2" + "true0"
3+
Assertion passed: found "cow1true" + "0"
4+
Assertion passed: found "cow2true" + "0"
5+
Assertion passed: found "cow2false" + "0"
6+
7+
public unroll.Unrolled()
8+
public unroll.Unrolled(java.lang.String,int)
9+
public unroll.Unrolled(java.lang.String,int,boolean)
10+
public unroll.Unrolled(java.lang.String,int,boolean,long)
11+
Assertion passed: found "cow1true0"
12+
Assertion passed: found "cow2true0"
13+
Assertion passed: found "cow2false0"
14+
Assertion passed: found "cow2false3"

tests/run/unroll-secondaryConstructor-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ object UnrollTestPlatformSpecificV3{
3030
"hello2false3"
3131
)
3232

33-
cls.getConstructors.foreach(println)
33+
cls.getConstructors.map(_.toString).sorted.foreach(println)
3434
}
3535
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Assertion passed: found "cow1" + "true0"
2+
Assertion passed: found "cow2" + "true0"
3+
Assertion passed: found "cow1" + "true0"
4+
Assertion passed: found "cow2" + "true0"
5+
Assertion passed: found "cow1true" + "0"
6+
Assertion passed: found "cow2true" + "0"
7+
Assertion passed: found "cow2false" + "0"
8+
Assertion passed: found "cow1true" + "0"
9+
Assertion passed: found "cow2true" + "0"
10+
Assertion passed: found "cow2false" + "0"
11+
12+
public default boolean unroll.Unrolled.foo$default$3()
13+
public default int unroll.Unrolled.foo$default$2()
14+
public default java.lang.String unroll.Unrolled.foo(java.lang.String,int)
15+
public default java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean)
16+
public default java.lang.String unroll.Unrolled.foo(java.lang.String,int,boolean,long)
17+
public default long unroll.Unrolled.foo$default$4()
18+
public static boolean unroll.Unrolled.foo$default$3$(unroll.Unrolled)
19+
public static int unroll.Unrolled.foo$default$2$(unroll.Unrolled)
20+
public static java.lang.String unroll.Unrolled.foo$(unroll.Unrolled,java.lang.String,int)
21+
public static java.lang.String unroll.Unrolled.foo$(unroll.Unrolled,java.lang.String,int,boolean)
22+
public static java.lang.String unroll.Unrolled.foo$(unroll.Unrolled,java.lang.String,int,boolean,long)
23+
public static long unroll.Unrolled.foo$default$4$(unroll.Unrolled)
24+
Assertion passed: found "cow1true0"
25+
Assertion passed: found "cow2true0"
26+
Assertion passed: found "cow2false0"
27+
Assertion passed: found "cow2false3"
28+
Assertion passed: found "cow1true0"
29+
Assertion passed: found "cow2true0"
30+
Assertion passed: found "cow2false0"
31+
Assertion passed: found "cow2false3"

tests/run/unroll-traitMethod-integration/UnrollTestPlatformSpecific_3.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object UnrollTestPlatformSpecificV3{
2424
"hello2false3"
2525
)
2626

27-
cls.getMethods.filter(_.getName.contains("foo")).foreach(println)
27+
cls.getMethods.filter(_.getName.contains("foo")).map(_.toString).sorted.foreach(println)
2828

2929
}
3030
}

tests/run/unroll-traitMethod/Test_2.scala

-6
This file was deleted.

tests/run/unroll-traitMethod/Unrolled_1.scala

-10
This file was deleted.

tests/run/unroll-value-class.check

Whitespace-only changes.

0 commit comments

Comments
 (0)