diff --git a/rewrite-yaml/src/test/java/org/openrewrite/yaml/YamlParserTest.java b/rewrite-yaml/src/test/java/org/openrewrite/yaml/YamlParserTest.java index e3033a4b827..e5919ea2f63 100644 --- a/rewrite-yaml/src/test/java/org/openrewrite/yaml/YamlParserTest.java +++ b/rewrite-yaml/src/test/java/org/openrewrite/yaml/YamlParserTest.java @@ -169,6 +169,21 @@ void unicodeEscapes() { ); } + @ParameterizedTest + @ValueSource(strings = { + // pass + "a: b@@c", + "a: b@c@d", + "a: :@b", + "a: :@@b", + // fail + "a: :@b@", + "a: ':@b@'", + }) + void projectBasedir(String yaml) { + rewriteRun(yaml(yaml)); + } + @Test void troublesomeYaml() { rewriteRun(