Skip to content

Commit f94d219

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

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

compiler/test/dotty/tools/utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ class ToolArgsTest:
117117
@Test def `missing tool is absent`: Unit = assertEquals(Nil, toolArgsFor(ToolName.Javac, None)("// test: -hey" :: Nil))
118118
@Test def `multitool is present`: Unit =
119119
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))
120+
assertEquals("-d" :: "/tmp" :: Nil, toolArgsFor(ToolName.Java, None)("// test: -hey" :: "// java: -d /tmp" :: Nil))
121121
end ToolArgsTest

tests/pos/i18533/Cat.java

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 0 additions & 3 deletions
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)