Skip to content

Commit 11d0290

Browse files
committed
Enable preview in pos/i18533 tests
1 parent 31531ef commit 11d0290

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

compiler/test/dotty/tools/utils.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ class ToolArgsTest:
116116
@Test def `tool is present`: Unit = assertEquals("-hey" :: Nil, toolArgsFor(ToolName.Test, None)("// test: -hey" :: Nil))
117117
@Test def `missing tool is absent`: Unit = assertEquals(Nil, toolArgsFor(ToolName.Javac, None)("// test: -hey" :: Nil))
118118
@Test def `multitool is present`: Unit =
119-
assertEquals("-hey" :: Nil, toolArgsFor(ToolName.Test, None)("// test: -hey" :: "// javac: -d /tmp" :: Nil))
120-
assertEquals("-d" :: "/tmp" :: Nil, toolArgsFor(ToolName.Javac, None)("// test: -hey" :: "// javac: -d /tmp" :: Nil))
119+
assertEquals("-hey" :: Nil, toolArgsFor(ToolName.Test, None)("// test: -hey" :: "// java: -d /tmp" :: Nil))
120+
assertEquals("-d" :: "/tmp" :: Nil, toolArgsFor(ToolName.Java, None)("// test: -hey" :: "// java: -d /tmp" :: Nil))
121121
end ToolArgsTest

tests/pos/i18533/Cat.java

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//> using javacOpt --enable-preview --source 17
2+
//> test: -jvm 17+
3+
14
package i18533;
25

36
public final class Cat extends Pet {

tests/pos/i18533/Dog.java

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//> using javacOpt --enable-preview --source 17
2+
//> test: -jvm 17+
3+
14
package i18533;
25

36
public non-sealed class Dog extends Pet {

tests/pos/i18533/Pet.java

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//> using javacOpt --enable-preview --source 17
2+
//> test: -jvm 17+
3+
14
package i18533;
25

36
public sealed class Pet permits Cat, Dog {

tests/run/t9915/C_1.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* javac: -encoding UTF-8
3-
*/
41
public class C_1 {
52
public static final String NULLED = "X\000ABC";
63
public static final String SUPPED = "𐒈𐒝𐒑𐒛𐒐𐒘𐒕𐒖";

0 commit comments

Comments
 (0)