Commit 9dbb7fa
committed
test(cmd2): add coverage for EOF during multiline command input
Added a unit test 'test_multiline_complete_statement_eof' to cover the logic in '_complete_statement' where an EOF is encountered during multiline command input. The test verifies that 'eof' is correctly handled by converting it to a newline terminator and printing it.1 parent 93be6d2 commit 9dbb7fa
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1836 | 1861 | | |
1837 | 1862 | | |
1838 | 1863 | | |
| |||
0 commit comments