()
| 261 | |
| 262 | |
| 263 | def test_find_help(): |
| 264 | for case in [SIMPLE_HELP, DETAILED_HELP, MAGIC_HELP, HELP_IN_EXPR]: |
| 265 | check_find(ipt2.HelpEnd, case) |
| 266 | |
| 267 | tf = check_find(ipt2.HelpEnd, HELP_CONTINUED_LINE) |
| 268 | assert tf.q_line == 1 |
| 269 | assert tf.q_col == 3 |
| 270 | |
| 271 | tf = check_find(ipt2.HelpEnd, HELP_MULTILINE) |
| 272 | assert tf.q_line == 1 |
| 273 | assert tf.q_col == 8 |
| 274 | |
| 275 | # ? in a comment does not trigger help |
| 276 | check_find(ipt2.HelpEnd, (["foo # bar?\n"], None, None), match=False) |
| 277 | # Nor in a string |
| 278 | check_find(ipt2.HelpEnd, (["foo = '''bar?\n"], None, None), match=False) |
| 279 | |
| 280 | |
| 281 | def test_transform_help(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…