diff --git a/src/test/java/dev/jbang/cli/TestInit.java b/src/test/java/dev/jbang/cli/TestInit.java index 986e1d9bf..daf76b400 100644 --- a/src/test/java/dev/jbang/cli/TestInit.java +++ b/src/test/java/dev/jbang/cli/TestInit.java @@ -178,6 +178,11 @@ void testInitMultipleFilesWrongName() throws IOException { testFailMultipleFiles("{filename}", "edit.md", "edit.java", true, 2); } + @Test + void testInitMultipleFilesWrongName2() throws IOException { + testFailMultipleFiles("{basename}.java", "edit.md", "edit.java", true, 2); + } + void testInitMultipleFiles(String targetName, String initName, String outName, boolean abs) throws IOException { Path outFile = setupInitMultipleFiles(targetName, initName, abs); int result = JBang.getCommandLine().execute("init", "-t=name", outFile.toString());