<commit_before>import org.jetbrains.kotlin.compiletest.lldbTest
import org.junit.Test

class LldbTests {
    @Test
    fun `can step through code`() = lldbTest("""
        fun main(args: Array<String>) {
            var x = 1
            var y = 2
            var z = x + y
            println(z)
        }
    """, """
        > b main.kt:2
        Breakpoint 1: [..]

        > r
        Process [..] stopped
        [..] at main.kt:2, [..] stop reason = breakpoint 1.1

        > n
        Process [..] stopped
        [..] at main.kt:3, [..] stop reason = step over

        > n
        Process [..] stopped
        [..] at main.kt:4, [..] stop reason = step over

        > n
        Process [..] stopped
        [..] at main.kt:5, [..] stop reason = step over
    """)

    //FIXME: Boolean and Int are wrong
    @Test
    fun `can inspect values of primitive types`() = lldbTest("""
        fun main(args: Array<String>) {
            var a: Byte =  1
            var b: Int  =  2
            var c: Long = -3
            var d: Char = 'c'
            var e: Boolean = true
            return
        }
    """, """
            > b main.kt:7
            > r
            > fr var
            (char) a = '\x01'
            (int) b = 2
            (long) c = -3
            (unsigned char) d = 'c'
            (void) e = <Unable to determine byte size.>
    """)
<commit_msg>Fix matching of the lldb response<commit_after>import org.jetbrains.kotlin.compiletest.lldbTest
import org.junit.Test

class LldbTests {
    @Test
    fun `can step through code`() = lldbTest("""
        fun main(args: Array<String>) {
            var x = 1
            var y = 2
            var z = x + y
            println(z)
        }
    """, """
        > b main.kt:2
        Breakpoint 1: [..]

        > r
        Process [..] stopped
        [..] stop reason = breakpoint 1.1
        [..] at main.kt:2

        > n
        Process [..] stopped
        [..] stop reason = step over
        [..] at main.kt:3

        > n
        Process [..] stopped
        [..] stop reason = step over
        [..] at main.kt:4

        > n
        Process [..] stopped
        [..] stop reason = step over
        [..] at main.kt:5
    """)

    //FIXME: Boolean and Int are wrong
    @Test
    fun `can inspect values of primitive types`() = lldbTest("""
        fun main(args: Array<String>) {
            var a: Byte =  1
            var b: Int  =  2
            var c: Long = -3
            var d: Char = 'c'
            var e: Boolean = true
            return
        }
    """, """
            > b main.kt:7
            > r
            > fr var
            (char) a = '\x01'
            (int) b = 2
            (long) c = -3
            (unsigned char) d = 'c'
            (void) e = <Unable to determine byte size.>
    """)

{'fraction_non_alphanumeric': 0.1368496079828938, 'fraction_numerical': 0.012829650748396294, 'mean_word_length': 1.1526073619631902, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6207369', 'n_tokens_mistral': 910, 'n_tokens_neox': 881, 'n_words': 267}