mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
parent
46ddd5f5f4
commit
d6f2af378a
@ -620,7 +620,7 @@ const TermState = enum {
|
||||
test "term color" {
|
||||
const input_bytes = "A\x1b[32;1mgreen\x1b[0mB";
|
||||
const result = try termColor(std.debug.global_allocator, input_bytes);
|
||||
testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result));
|
||||
testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result);
|
||||
}
|
||||
|
||||
fn termColor(allocator: *mem.Allocator, input: []const u8) ![]u8 {
|
||||
|
@ -4627,7 +4627,7 @@ test "fibonacci" {
|
||||
<p>
|
||||
What if we fix the base case, but put the wrong value in the {#syntax#}assert{#endsyntax#} line?
|
||||
</p>
|
||||
{#code_begin|test_err|encountered @panic at compile-time#}
|
||||
{#code_begin|test_err|unable to evaluate constant expression#}
|
||||
const assert = @import("std").debug.assert;
|
||||
|
||||
fn fibonacci(index: i32) i32 {
|
||||
|
Loading…
Reference in New Issue
Block a user