| ... | @@ -1725,7 +1725,7 @@ test "shell parsed" { | ... | @@ -1725,7 +1725,7 @@ test "shell parsed" { |
| 1725 | \\$ zig build test.zig | 1725 | \\$ zig build test.zig |
| 1726 | ; | 1726 | ; |
| 1727 | const expected = | 1727 | const expected = |
| 1728 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1728 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1729 | \\</samp></pre></figure> | 1729 | \\</samp></pre></figure> |
| 1730 | ; | 1730 | ; |
| 1731 | | 1731 | |
| ... | @@ -1733,6 +1733,7 @@ test "shell parsed" { | ... | @@ -1733,6 +1733,7 @@ test "shell parsed" { |
| 1733 | defer buffer.deinit(); | 1733 | defer buffer.deinit(); |
| 1734 | | 1734 | |
| 1735 | try printShell(buffer.writer(), shell_out); | 1735 | try printShell(buffer.writer(), shell_out); |
| | 1736 | std.log.emerg("{s}", .{buffer.items}); |
| 1736 | try testing.expectEqualSlices(u8, expected, buffer.items); | 1737 | try testing.expectEqualSlices(u8, expected, buffer.items); |
| 1737 | } | 1738 | } |
| 1738 | { | 1739 | { |
| ... | @@ -1741,8 +1742,8 @@ test "shell parsed" { | ... | @@ -1741,8 +1742,8 @@ test "shell parsed" { |
| 1741 | \\build output | 1742 | \\build output |
| 1742 | ; | 1743 | ; |
| 1743 | const expected = | 1744 | const expected = |
| 1744 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1745 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1745 | \\build output | 1746 | \\<span class="line">build output</span> |
| 1746 | \\</samp></pre></figure> | 1747 | \\</samp></pre></figure> |
| 1747 | ; | 1748 | ; |
| 1748 | | 1749 | |
| ... | @@ -1759,9 +1760,9 @@ test "shell parsed" { | ... | @@ -1759,9 +1760,9 @@ test "shell parsed" { |
| 1759 | \\$ ./test | 1760 | \\$ ./test |
| 1760 | ; | 1761 | ; |
| 1761 | const expected = | 1762 | const expected = |
| 1762 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1763 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1763 | \\build output | 1764 | \\<span class="line">build output</span> |
| 1764 | \\$ <kbd>./test</kbd> | 1765 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1765 | \\</samp></pre></figure> | 1766 | \\</samp></pre></figure> |
| 1766 | ; | 1767 | ; |
| 1767 | | 1768 | |
| ... | @@ -1779,10 +1780,10 @@ test "shell parsed" { | ... | @@ -1779,10 +1780,10 @@ test "shell parsed" { |
| 1779 | \\output | 1780 | \\output |
| 1780 | ; | 1781 | ; |
| 1781 | const expected = | 1782 | const expected = |
| 1782 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1783 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1783 | \\ | 1784 | \\<span class="line"></span> |
| 1784 | \\$ <kbd>./test</kbd> | 1785 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1785 | \\output | 1786 | \\<span class="line">output</span> |
| 1786 | \\</samp></pre></figure> | 1787 | \\</samp></pre></figure> |
| 1787 | ; | 1788 | ; |
| 1788 | | 1789 | |
| ... | @@ -1799,9 +1800,9 @@ test "shell parsed" { | ... | @@ -1799,9 +1800,9 @@ test "shell parsed" { |
| 1799 | \\output | 1800 | \\output |
| 1800 | ; | 1801 | ; |
| 1801 | const expected = | 1802 | const expected = |
| 1802 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1803 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1803 | \\$ <kbd>./test</kbd> | 1804 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1804 | \\output | 1805 | \\<span class="line">output</span> |
| 1805 | \\</samp></pre></figure> | 1806 | \\</samp></pre></figure> |
| 1806 | ; | 1807 | ; |
| 1807 | | 1808 | |
| ... | @@ -1820,11 +1821,11 @@ test "shell parsed" { | ... | @@ -1820,11 +1821,11 @@ test "shell parsed" { |
| 1820 | \\output | 1821 | \\output |
| 1821 | ; | 1822 | ; |
| 1822 | const expected = | 1823 | const expected = |
| 1823 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \ | 1824 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span> |
| 1824 | \\ --build-option</kbd> | 1825 | \\<span class="line"> --build-option</kbd></span> |
| 1825 | \\build output | 1826 | \\<span class="line">build output</span> |
| 1826 | \\$ <kbd>./test</kbd> | 1827 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1827 | \\output | 1828 | \\<span class="line">output</span> |
| 1828 | \\</samp></pre></figure> | 1829 | \\</samp></pre></figure> |
| 1829 | ; | 1830 | ; |
| 1830 | | 1831 | |
| ... | @@ -1843,10 +1844,10 @@ test "shell parsed" { | ... | @@ -1843,10 +1844,10 @@ test "shell parsed" { |
| 1843 | \\$ ./test | 1844 | \\$ ./test |
| 1844 | ; | 1845 | ; |
| 1845 | const expected = | 1846 | const expected = |
| 1846 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \ | 1847 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span> |
| 1847 | \\ --build-option1 \ | 1848 | \\<span class="line"> --build-option1 \</span> |
| 1848 | \\ --build-option2</kbd> | 1849 | \\<span class="line"> --build-option2</kbd></span> |
| 1849 | \\$ <kbd>./test</kbd> | 1850 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1850 | \\</samp></pre></figure> | 1851 | \\</samp></pre></figure> |
| 1851 | ; | 1852 | ; |
| 1852 | | 1853 | |
| ... | @@ -1862,8 +1863,8 @@ test "shell parsed" { | ... | @@ -1862,8 +1863,8 @@ test "shell parsed" { |
| 1862 | \\$ ./test | 1863 | \\$ ./test |
| 1863 | ; | 1864 | ; |
| 1864 | const expected = | 1865 | const expected = |
| 1865 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \ | 1866 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span> |
| 1866 | \\$ ./test</kbd> | 1867 | \\<span class="line">$ ./test</kbd></span> |
| 1867 | \\</samp></pre></figure> | 1868 | \\</samp></pre></figure> |
| 1868 | ; | 1869 | ; |
| 1869 | | 1870 | |
| ... | @@ -1880,9 +1881,9 @@ test "shell parsed" { | ... | @@ -1880,9 +1881,9 @@ test "shell parsed" { |
| 1880 | \\$1 | 1881 | \\$1 |
| 1881 | ; | 1882 | ; |
| 1882 | const expected = | 1883 | const expected = |
| 1883 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd> | 1884 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span> |
| 1884 | \\$ <kbd>./test</kbd> | 1885 | \\<span class="line">$ <kbd>./test</kbd></span> |
| 1885 | \\$1 | 1886 | \\<span class="line">$1</span> |
| 1886 | \\</samp></pre></figure> | 1887 | \\</samp></pre></figure> |
| 1887 | ; | 1888 | ; |
| 1888 | | 1889 | |
| ... | @@ -1897,7 +1898,7 @@ test "shell parsed" { | ... | @@ -1897,7 +1898,7 @@ test "shell parsed" { |
| 1897 | \\$zig build test.zig | 1898 | \\$zig build test.zig |
| 1898 | ; | 1899 | ; |
| 1899 | const expected = | 1900 | const expected = |
| 1900 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$zig build test.zig | 1901 | \\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$zig build test.zig</span> |
| 1901 | \\</samp></pre></figure> | 1902 | \\</samp></pre></figure> |
| 1902 | ; | 1903 | ; |
| 1903 | | 1904 | |