(self)
| 118 | self.assertEqual(result.stdout, "Alpha\n\nBeta\n\n") |
| 119 | |
| 120 | def test_show_ends(self): |
| 121 | with tempfile.TemporaryDirectory() as temp_dir: |
| 122 | file_path = Path(temp_dir) / "lines.txt" |
| 123 | file_path.write_text("Alpha\nBeta", encoding="utf-8") |
| 124 | |
| 125 | result = self.run_cat("-E", file_path) |
| 126 | |
| 127 | self.assertEqual(result.returncode, 0) |
| 128 | self.assertEqual(result.stdout, "Alpha$\nBeta$") |
| 129 | |
| 130 | def test_combines_options(self): |
| 131 | with tempfile.TemporaryDirectory() as temp_dir: |