(self, attacked_text, attacked_text_pair)
| 85 | assert attacked_text_pair.text == "\n".join(raw_text_pair.values()) |
| 86 | |
| 87 | def test_printable_text(self, attacked_text, attacked_text_pair): |
| 88 | assert attacked_text.printable_text() == raw_text |
| 89 | desired_printed_pair_text = ( |
| 90 | "Premise: " + premise + "\n" + "Hypothesis: " + hypothesis |
| 91 | ) |
| 92 | print("p =>", attacked_text_pair.printable_text()) |
| 93 | print("d =>", desired_printed_pair_text) |
| 94 | assert attacked_text_pair.printable_text() == desired_printed_pair_text |
| 95 | |
| 96 | def test_tokenizer_input(self, attacked_text, attacked_text_pair): |
| 97 | assert attacked_text.tokenizer_input == raw_text |
nothing calls this directly
no test coverage detected