mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GT-3620 SymbolPathParser review fix
This commit is contained in:
parent
dde3f4aa8c
commit
4478f85650
2 changed files with 19 additions and 3 deletions
|
@ -130,4 +130,20 @@ public class SymbolPathParserTest extends AbstractGTest {
|
|||
assertListEqualOrdered(expected, list);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnmatchedAngleBracketFallback1() {
|
||||
// Contrived example to test naive parsing going into fallback mode due to unmatched
|
||||
// angle brackets. The expected result here is not an accurate result that we would
|
||||
// expect from a more sophisticated parser.
|
||||
String name = "A::operator<=::B<C<int>::<unnamed-tag>>::E";
|
||||
List<String> list = SymbolPathParser.parse(name);
|
||||
List<String> expected = new ArrayList<>();
|
||||
expected.add("A");
|
||||
expected.add("operator<=");
|
||||
expected.add("B<C<int>");
|
||||
expected.add("<unnamed-tag>>");
|
||||
expected.add("E");
|
||||
assertListEqualOrdered(expected, list);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue