authorgravatar for pfg@pfg.pwpfg <pfg@pfg.pw> 2021-10-02 17:04:51-04:00
committergravatar for pfg@pfg.pwpfg <pfg@pfg.pw> 2021-10-02 17:04:51-04:00
log0b440d9e297767c3f31460d569d84103d7dcdba9
tree3ebfbebd5c7ec20d884b7b99bcef71d3a62c7ca2
parent224423ac27876cb6f4d05edd30188fcca07e5b68

fix the erroring tests


1 files changed, 29 insertions(+), 28 deletions(-)

doc/docgen.zig+29-28
...@@ -1725,7 +1725,7 @@ test "shell parsed" {...@@ -1725,7 +1725,7 @@ test "shell parsed" {
1725 \\$ zig build test.zig1725 \\$ 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 ;
17311731
...@@ -1733,6 +1733,7 @@ test "shell parsed" {...@@ -1733,6 +1733,7 @@ test "shell parsed" {
1733 defer buffer.deinit();1733 defer buffer.deinit();
17341734
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 output1742 \\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 output1746 \\<span class="line">build output</span>
1746 \\</samp></pre></figure>1747 \\</samp></pre></figure>
1747 ;1748 ;
17481749
...@@ -1759,9 +1760,9 @@ test "shell parsed" {...@@ -1759,9 +1760,9 @@ test "shell parsed" {
1759 \\$ ./test1760 \\$ ./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 output1764 \\<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 ;
17671768
...@@ -1779,10 +1780,10 @@ test "shell parsed" {...@@ -1779,10 +1780,10 @@ test "shell parsed" {
1779 \\output1780 \\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 \\output1786 \\<span class="line">output</span>
1786 \\</samp></pre></figure>1787 \\</samp></pre></figure>
1787 ;1788 ;
17881789
...@@ -1799,9 +1800,9 @@ test "shell parsed" {...@@ -1799,9 +1800,9 @@ test "shell parsed" {
1799 \\output1800 \\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 \\output1805 \\<span class="line">output</span>
1805 \\</samp></pre></figure>1806 \\</samp></pre></figure>
1806 ;1807 ;
18071808
...@@ -1820,11 +1821,11 @@ test "shell parsed" {...@@ -1820,11 +1821,11 @@ test "shell parsed" {
1820 \\output1821 \\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 output1826 \\<span class="line">build output</span>
1826 \\$ <kbd>./test</kbd>1827 \\<span class="line">$ <kbd>./test</kbd></span>
1827 \\output1828 \\<span class="line">output</span>
1828 \\</samp></pre></figure>1829 \\</samp></pre></figure>
1829 ;1830 ;
18301831
...@@ -1843,10 +1844,10 @@ test "shell parsed" {...@@ -1843,10 +1844,10 @@ test "shell parsed" {
1843 \\$ ./test1844 \\$ ./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 ;
18521853
...@@ -1862,8 +1863,8 @@ test "shell parsed" {...@@ -1862,8 +1863,8 @@ test "shell parsed" {
1862 \\$ ./test1863 \\$ ./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 ;
18691870
...@@ -1880,9 +1881,9 @@ test "shell parsed" {...@@ -1880,9 +1881,9 @@ test "shell parsed" {
1880 \\$11881 \\$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 \\$11886 \\<span class="line">$1</span>
1886 \\</samp></pre></figure>1887 \\</samp></pre></figure>
1887 ;1888 ;
18881889
...@@ -1897,7 +1898,7 @@ test "shell parsed" {...@@ -1897,7 +1898,7 @@ test "shell parsed" {
1897 \\$zig build test.zig1898 \\$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.zig1901 \\<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 ;
19031904