Skip to content

Commit

Permalink
Update ktfmt component on FBS:master (#44184)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook/react-native#44184

Reviewed By: zertosh

Differential Revision: D56421174

fbshipit-source-id: 686e23775f53d67980c2e84a17d0a5c490dbec2a
  • Loading branch information
Nivaldo Bondança authored and facebook-github-bot committed Apr 22, 2024
1 parent 2364f16 commit 431f49f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/test/java/com/facebook/ktfmt/format/TokenizerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ class TokenizerTest {

@Test
fun `Token index is advanced after a string token`() {
val code = """
val code =
"""
|val b="a"
|val a=5
|""".trimMargin().trimMargin()
|"""
.trimMargin()
.trimMargin()

val file = Parser.parse(code)
val tokenizer = Tokenizer(code, file)
Expand Down

0 comments on commit 431f49f

Please sign in to comment.