|
27 | 27 | 'seq(3, 3) = {1, 2, 3}', |
28 | 28 | 'seq(3, 3) = {"one", "two", "three"}', |
29 | 29 | 'Table(3, 64) = {[4] = "four", [5] = "five", [6] = "six"}', |
30 | | - 'Table(3, 8) = {["two"] = 2, ["three"] = 3, ["one"] = 1}', |
| 30 | + 'Table(3, 8) = {["three"] = 3, ["one"] = 1, ["two"] = 2}', |
31 | 31 | '{a = 1, b = "some string"}', |
32 | 32 | '("hello", 42)' |
33 | 33 | ] |
34 | 34 |
|
35 | | -argRegex = re.compile("^.* = (?:No suitable Nim \$ operator found for type: \w+\s*)*(.*)$") |
| 35 | +argRegex = re.compile(r"^.* = (?:No suitable Nim \$ operator found for type: \w+\s*)*(.*)$") |
36 | 36 | # Remove this error message which can pop up |
37 | | -noSuitableRegex = re.compile("(No suitable Nim \$ operator found for type: \w+\s*)") |
| 37 | +noSuitableRegex = re.compile(r"(No suitable Nim \$ operator found for type: \w+\s*)") |
38 | 38 |
|
39 | 39 | for i, expected in enumerate(outputs): |
40 | 40 | gdb.write(f"\x1b[38;5;105m{i+1}) expecting: {expected}: \x1b[0m", gdb.STDLOG) |
|
46 | 46 | if i == 6: |
47 | 47 | # myArray is passed as pointer to int to myDebug. I look up myArray up in the stack |
48 | 48 | gdb.execute("up") |
49 | | - raw = gdb.parse_and_eval("myArray") |
| 49 | + raw = gdb.parse_and_eval("myArray_1") |
50 | 50 | elif i == 9: |
51 | 51 | # myOtherArray is passed as pointer to int to myDebug. I look up myOtherArray up in the stack |
52 | 52 | gdb.execute("up") |
53 | | - raw = gdb.parse_and_eval("myOtherArray") |
| 53 | + raw = gdb.parse_and_eval("myOtherArray_1") |
54 | 54 | else: |
55 | 55 | rawArg = re.sub(noSuitableRegex, "", gdb.execute("info args", to_string = True)) |
56 | 56 | raw = rawArg.split("=", 1)[-1].strip() |
|
0 commit comments