Skip to content

Commit 9a41891

Browse files
committed
Demonstrate issue with some Azul images
1 parent 4510a56 commit 9a41891

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/org/openrewrite/java/migrate/UpdateSdkManTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,19 @@ void onlyUpdateSdkManRCFiles() {
141141
);
142142
}
143143

144+
@Test
145+
void nonNumericalVersionPart() {
146+
rewriteRun(
147+
spec -> spec.recipe(new UpdateSdkMan("17", null)),
148+
text(
149+
"""
150+
java=11.0.25.fx-zulu
151+
""",
152+
"""
153+
java=17.0.13.fx-zulu
154+
""",
155+
spec -> spec.path(".sdkmanrc")
156+
)
157+
);
158+
}
144159
}

0 commit comments

Comments
 (0)