@@ -52,7 +52,7 @@ def testParseSymbolPage_SingleHeader(self):
52
52
</tr>
53
53
</tbody></table>
54
54
"""
55
- self .assertEqual (_ParseSymbolPage (html , "foo" ), set (["<cmath>" ]))
55
+ self .assertEqual (_ParseSymbolPage (html , "foo" , "foo" ), set (["<cmath>" ]))
56
56
57
57
def testParseSymbolPage_MulHeaders (self ):
58
58
# Defined in header <cstddef>
@@ -92,7 +92,9 @@ def testParseSymbolPage_MulHeaders(self):
92
92
</tr>
93
93
</tbody></table>
94
94
"""
95
- self .assertEqual (_ParseSymbolPage (html , "foo" ), set (["<cstdio>" , "<cstdlib>" ]))
95
+ self .assertEqual (
96
+ _ParseSymbolPage (html , "foo" , "foo" ), set (["<cstdio>" , "<cstdlib>" ])
97
+ )
96
98
97
99
def testParseSymbolPage_MulHeadersInSameDiv (self ):
98
100
# Multile <code> blocks in a Div.
@@ -118,7 +120,7 @@ def testParseSymbolPage_MulHeadersInSameDiv(self):
118
120
</tbody></table>
119
121
"""
120
122
self .assertEqual (
121
- _ParseSymbolPage (html , "foo" ), set (["<algorithm>" , "<utility>" ])
123
+ _ParseSymbolPage (html , "foo" , "foo" ), set (["<algorithm>" , "<utility>" ])
122
124
)
123
125
124
126
def testParseSymbolPage_MulSymbolsInSameTd (self ):
@@ -142,8 +144,10 @@ def testParseSymbolPage_MulSymbolsInSameTd(self):
142
144
</tr>
143
145
</tbody></table>
144
146
"""
145
- self .assertEqual (_ParseSymbolPage (html , "int8_t" ), set (["<cstdint>" ]))
146
- self .assertEqual (_ParseSymbolPage (html , "int16_t" ), set (["<cstdint>" ]))
147
+ self .assertEqual (_ParseSymbolPage (html , "int8_t" , "int8_t" ), set (["<cstdint>" ]))
148
+ self .assertEqual (
149
+ _ParseSymbolPage (html , "int16_t" , "int16_t" ), set (["<cstdint>" ])
150
+ )
147
151
148
152
149
153
if __name__ == "__main__" :
0 commit comments