()
| 59 | 'Longer: {}\nShorter: {}'.format(s2, s1, longer, shorter)) |
| 60 | |
| 61 | def main(): |
| 62 | self_test_exe, = sys.argv[1:] |
| 63 | |
| 64 | # We want a random seed for the test, but want to avoid 0, |
| 65 | # because it has special meaning |
| 66 | seed = random.randint(1, 2 ** 32 - 1) |
| 67 | |
| 68 | list_one_tag = list_tests(self_test_exe, ['generators'], seed) |
| 69 | list_two_tags = list_tests(self_test_exe, ['generators', 'matchers'], seed) |
| 70 | list_all = list_tests(self_test_exe, [], seed) |
| 71 | |
| 72 | # First, verify that restricting to a subset yields the same order |
| 73 | check_is_sublist_of(list_two_tags, list_all) |
| 74 | check_is_sublist_of(list_one_tag, list_two_tags) |
| 75 | |
| 76 | if __name__ == '__main__': |
| 77 | sys.exit(main()) |
no test coverage detected