Advertisement
Guest User

Untitled

a guest
Mar 15th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. (build/)$./zig test ../lib/std/zig/parser_test.zig
  2. Test [206/292] test "zig fmt: switch multiline string"...
  3. ====== expected this output: =========
  4. test "switch multiline string" {
  5. const x: u32 = 0;
  6. const str = switch (x) {
  7. 1 => "one",
  8. 2 =>
  9. \\ Comma after the multiline string
  10. \\ is needed
  11. ,
  12. 3 => "three",
  13. else => "else",
  14. };
  15. }
  16. ▒Documents/personal/zig/lib/std/zig/parser_test.zig:4937:39: 0x22cff8 in testTransform (test)
  17. std.testing.expectEqualStrings(expected_source, result_source);
  18. ^
  19. /mnt/c/Users/legaul/Documents/personal/zig/lib/std/zig/parser_test.zig:4978:25: 0x22d3c8 in testCanonical (test)
  20. return testTransform(source, source);
  21. ^
  22. /mnt/c/Users/legaul/Documents/personal/zig/lib/std/zig/parser_test.zig:3044:22: 0x22a80a in test "zig fmt: switch multiline string" (test)
  23. try testCanonical(
  24. ^
  25. /mnt/c/Users/legaul/Documents/personal/zig/build/lib/zig/std/special/test_runner.zig:69:28: 0x294528 in std.special.main (test)
  26. } else test_fn.func();
  27. ^
  28. /mnt/c/Users/legaul/Documents/personal/zig/build/lib/zig/std/start.zig:345:37: 0x22d964 in std.start.posixCallMainAndExit (test)
  29. const result = root.main() catch |err| {
  30. ^
  31. /mnt/c/Users/legaul/Documents/personal/zig/build/lib/zig/std/start.zig:163:5: 0x22d802 in std.start._start (test)
  32. @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
  33. ^
  34. error: the following test command crashed:
  35. ../lib/std/zig/zig-cache/o/9e249e787943a4124b73ec300c2230b2/test /mnt/c/Users/legaul/Documents/personal/zig/build/zig
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement