mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
fix the erroring tests
This commit is contained in:
parent
224423ac27
commit
0b440d9e29
1 changed files with 29 additions and 28 deletions
|
|
@ -1725,7 +1725,7 @@ test "shell parsed" {
|
||||||
\\$ zig build test.zig
|
\\$ zig build test.zig
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1733,6 +1733,7 @@ test "shell parsed" {
|
||||||
defer buffer.deinit();
|
defer buffer.deinit();
|
||||||
|
|
||||||
try printShell(buffer.writer(), shell_out);
|
try printShell(buffer.writer(), shell_out);
|
||||||
|
std.log.emerg("{s}", .{buffer.items});
|
||||||
try testing.expectEqualSlices(u8, expected, buffer.items);
|
try testing.expectEqualSlices(u8, expected, buffer.items);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -1741,8 +1742,8 @@ test "shell parsed" {
|
||||||
\\build output
|
\\build output
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\build output
|
\\<span class="line">build output</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1759,9 +1760,9 @@ test "shell parsed" {
|
||||||
\\$ ./test
|
\\$ ./test
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\build output
|
\\<span class="line">build output</span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1779,10 +1780,10 @@ test "shell parsed" {
|
||||||
\\output
|
\\output
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\
|
\\<span class="line"></span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\output
|
\\<span class="line">output</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1799,9 +1800,9 @@ test "shell parsed" {
|
||||||
\\output
|
\\output
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\output
|
\\<span class="line">output</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1820,11 +1821,11 @@ test "shell parsed" {
|
||||||
\\output
|
\\output
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span>
|
||||||
\\ --build-option</kbd>
|
\\<span class="line"> --build-option</kbd></span>
|
||||||
\\build output
|
\\<span class="line">build output</span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\output
|
\\<span class="line">output</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1843,10 +1844,10 @@ test "shell parsed" {
|
||||||
\\$ ./test
|
\\$ ./test
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span>
|
||||||
\\ --build-option1 \
|
\\<span class="line"> --build-option1 \</span>
|
||||||
\\ --build-option2</kbd>
|
\\<span class="line"> --build-option2</kbd></span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1862,8 +1863,8 @@ test "shell parsed" {
|
||||||
\\$ ./test
|
\\$ ./test
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig \
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig \</span>
|
||||||
\\$ ./test</kbd>
|
\\<span class="line">$ ./test</kbd></span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1880,9 +1881,9 @@ test "shell parsed" {
|
||||||
\\$1
|
\\$1
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$ <kbd>zig build test.zig</kbd>
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$ <kbd>zig build test.zig</kbd></span>
|
||||||
\\$ <kbd>./test</kbd>
|
\\<span class="line">$ <kbd>./test</kbd></span>
|
||||||
\\$1
|
\\<span class="line">$1</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -1897,7 +1898,7 @@ test "shell parsed" {
|
||||||
\\$zig build test.zig
|
\\$zig build test.zig
|
||||||
;
|
;
|
||||||
const expected =
|
const expected =
|
||||||
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp>$zig build test.zig
|
\\<figure><figcaption class="shell-cap">Shell</figcaption><pre><samp><span class="line">$zig build test.zig</span>
|
||||||
\\</samp></pre></figure>
|
\\</samp></pre></figure>
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue