Skip to content

Commit

Permalink
[lldb/Test] Sort substr for TestDataFormatterStdMap.py (2/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Feb 4, 2020
1 parent 0c16a22 commit 904d54d
Showing 1 changed file with 18 additions and 28 deletions.
Expand Up @@ -251,35 +251,25 @@ def cleanup():

self.runCmd("c")

self.expect("frame variable ss",
substrs=['map has 4 items',
'[0] = ',
'second = \"hello\"',
'first = \"ciao\"',
'[1] = ',
'second = \"house\"',
'first = \"casa\"',
'[2] = ',
'second = \"cat\"',
'first = \"gatto\"',
'[3] = ',
'second = \"..is always a Mac!\"',
'first = \"a Mac..\"'])
self.expect(
"frame variable ss",
substrs=[
'map has 4 items',
'[0] = (first = "a Mac..", second = "..is always a Mac!")',
'[1] = (first = "casa", second = "house")',
'[2] = (first = "ciao", second = "hello")',
'[3] = (first = "gatto", second = "cat")'
])

self.expect("p ss",
substrs=['map has 4 items',
'[0] = ',
'second = \"hello\"',
'first = \"ciao\"',
'[1] = ',
'second = \"house\"',
'first = \"casa\"',
'[2] = ',
'second = \"cat\"',
'first = \"gatto\"',
'[3] = ',
'second = \"..is always a Mac!\"',
'first = \"a Mac..\"'])
self.expect(
"p ss",
substrs=[
'map has 4 items',
'[0] = (first = "a Mac..", second = "..is always a Mac!")',
'[1] = (first = "casa", second = "house")',
'[2] = (first = "ciao", second = "hello")',
'[3] = (first = "gatto", second = "cat")'
])

# check access-by-index
self.expect("frame variable ss[3]",
Expand Down

0 comments on commit 904d54d

Please sign in to comment.