Skip to content

Commit

Permalink
Fixing the quoteEscaping test case for proper quote character escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
mccartney committed Nov 12, 2024
1 parent e8f149e commit 42dba4b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@
package org.openrewrite.hcl.tree;

import org.junit.jupiter.api.Test;
import org.junitpioneer.jupiter.ExpectedToFail;
import org.openrewrite.Issue;
import org.openrewrite.test.RewriteTest;

import static org.openrewrite.hcl.Assertions.hcl;

class HclStringTest implements RewriteTest {

@ExpectedToFail
@Issue("https://github.com/openrewrite/rewrite/issues/4612")
@Test
void quoteEscaping() {
rewriteRun(
hcl(
"""
locals {
quotedText = "this is a double quote: \". Look at me"
quotedText = "this is a double quote: \\". Look at me"
}
"""
)
Expand Down

0 comments on commit 42dba4b

Please sign in to comment.