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 69246d5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/pages/extensions.md
Expand Up @@ -168,20 +168,20 @@ 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 69246d5

Please sign in to comment.