Skip to content

Commit

Permalink
Fix additional indentation issues in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Apr 6, 2022
1 parent 7140d41 commit ab36488
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/pages/extensions.md
Expand Up @@ -168,21 +168,21 @@ class NumberOfLoopsProcessorSpec {

@Test
fun `should expect two loops`() {
val code = """
fun main() {
for (i in 0..10) {
while (i < 5) {
println(i)
}
}
}
"""

val ktFile = compileContentForTest(code)
NumberOfLoopsProcessor().onProcess(ktFile)

assertThat(ktFile.getUserData(NumberOfLoopsProcessor.numberOfLoopsKey)).isEqualTo(2)
}
val code = """
fun main() {
for (i in 0..10) {
while (i < 5) {
println(i)
}
}
}
"""

val ktFile = compileContentForTest(code)
NumberOfLoopsProcessor().onProcess(ktFile)

assertThat(ktFile.getUserData(NumberOfLoopsProcessor.numberOfLoopsKey)).isEqualTo(2)
}
}
```

Expand Down

0 comments on commit ab36488

Please sign in to comment.