From 116aaa48a63617f99931ef2c01cd940fde213c3e Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 14:49:54 +0100 Subject: [PATCH 1/6] Adding comment to testing.expectEqualStrings --- lib/std/testing.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/testing.zig b/lib/std/testing.zig index b99542e7e57b..8923fafb35ba 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -642,6 +642,9 @@ pub fn tmpDir(opts: std.fs.Dir.OpenOptions) TmpDir { }; } +/// This functions is to be used only in tests. Asserts that two slices of bytes are equal. +/// On mismatch, prints a diff and return error.TestExpectedEqual +/// On success, returns void pub fn expectEqualStrings(expected: []const u8, actual: []const u8) !void { if (std.mem.indexOfDiff(u8, actual, expected)) |diff_index| { if (@inComptime()) { From a31747aae742adb75c0928ef82b67adc34e80cd2 Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 17:49:52 +0100 Subject: [PATCH 2/6] improved comment on review --- lib/std/testing.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 8923fafb35ba..c2f831d7f8e6 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -642,9 +642,9 @@ pub fn tmpDir(opts: std.fs.Dir.OpenOptions) TmpDir { }; } -/// This functions is to be used only in tests. Asserts that two slices of bytes are equal. -/// On mismatch, prints a diff and return error.TestExpectedEqual -/// On success, returns void +/// This functions is to be used only in tests. When the two strings are not +/// equal, prints diagnostics to stderr to shw exactly they are not equal, +/// then returns a test expected equal error. pub fn expectEqualStrings(expected: []const u8, actual: []const u8) !void { if (std.mem.indexOfDiff(u8, actual, expected)) |diff_index| { if (@inComptime()) { From 35ec5d5695163716af2e8977028563dd05f21ea7 Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 17:56:25 +0100 Subject: [PATCH 3/6] typing fix --- .idea/.gitignore | 5 +++++ .idea/copilot.data.migration.agent.xml | 6 ++++++ .idea/copilot.data.migration.ask.xml | 6 ++++++ .idea/copilot.data.migration.ask2agent.xml | 6 ++++++ .idea/copilot.data.migration.edit.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ .idea/zig.iml | 12 ++++++++++++ .idea/zigbrains.xml | 4 ++++ lib/std/testing.zig | 2 +- 10 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/copilot.data.migration.agent.xml create mode 100644 .idea/copilot.data.migration.ask.xml create mode 100644 .idea/copilot.data.migration.ask2agent.xml create mode 100644 .idea/copilot.data.migration.edit.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/zig.iml create mode 100644 .idea/zigbrains.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000000..b58b603fea78 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml new file mode 100644 index 000000000000..4ea72a911af2 --- /dev/null +++ b/.idea/copilot.data.migration.agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xml new file mode 100644 index 000000000000..7ef04e2ea075 --- /dev/null +++ b/.idea/copilot.data.migration.ask.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask2agent.xml b/.idea/copilot.data.migration.ask2agent.xml new file mode 100644 index 000000000000..1f2ea11e7f00 --- /dev/null +++ b/.idea/copilot.data.migration.ask2agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml new file mode 100644 index 000000000000..8648f9401aa8 --- /dev/null +++ b/.idea/copilot.data.migration.edit.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000000..1226160487e5 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000000..35eb1ddfbbc0 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/zig.iml b/.idea/zig.iml new file mode 100644 index 000000000000..24643cc37449 --- /dev/null +++ b/.idea/zig.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/zigbrains.xml b/.idea/zigbrains.xml new file mode 100644 index 000000000000..1adc00838fb8 --- /dev/null +++ b/.idea/zigbrains.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/lib/std/testing.zig b/lib/std/testing.zig index c2f831d7f8e6..f5350f6add17 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -643,7 +643,7 @@ pub fn tmpDir(opts: std.fs.Dir.OpenOptions) TmpDir { } /// This functions is to be used only in tests. When the two strings are not -/// equal, prints diagnostics to stderr to shw exactly they are not equal, +/// equal, prints diagnostics to stderr to show exactly they are not equal, /// then returns a test expected equal error. pub fn expectEqualStrings(expected: []const u8, actual: []const u8) !void { if (std.mem.indexOfDiff(u8, actual, expected)) |diff_index| { From fe51d4c42974878a1c068608b2eaa34a6ec5b072 Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 17:57:18 +0100 Subject: [PATCH 4/6] Remove .idea directory and ignore it --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7e9e15820297..bd79282ad79a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ # Cheers! # -andrewrk +.idea .zig-cache/ zig-out/ /release/ From a64dd27b3cbf579b56c3b31eab5b72d4918ddee5 Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 17:58:48 +0100 Subject: [PATCH 5/6] Remove .idea files from repository --- .idea/.gitignore | 5 ----- .idea/copilot.data.migration.agent.xml | 6 ------ .idea/copilot.data.migration.ask.xml | 6 ------ .idea/copilot.data.migration.ask2agent.xml | 6 ------ .idea/copilot.data.migration.edit.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ .idea/zig.iml | 12 ------------ .idea/zigbrains.xml | 4 ---- 9 files changed, 59 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/copilot.data.migration.agent.xml delete mode 100644 .idea/copilot.data.migration.ask.xml delete mode 100644 .idea/copilot.data.migration.ask2agent.xml delete mode 100644 .idea/copilot.data.migration.edit.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/zig.iml delete mode 100644 .idea/zigbrains.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index b58b603fea78..000000000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml deleted file mode 100644 index 4ea72a911af2..000000000000 --- a/.idea/copilot.data.migration.agent.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xml deleted file mode 100644 index 7ef04e2ea075..000000000000 --- a/.idea/copilot.data.migration.ask.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask2agent.xml b/.idea/copilot.data.migration.ask2agent.xml deleted file mode 100644 index 1f2ea11e7f00..000000000000 --- a/.idea/copilot.data.migration.ask2agent.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml deleted file mode 100644 index 8648f9401aa8..000000000000 --- a/.idea/copilot.data.migration.edit.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 1226160487e5..000000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddfbbc0..000000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/zig.iml b/.idea/zig.iml deleted file mode 100644 index 24643cc37449..000000000000 --- a/.idea/zig.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/zigbrains.xml b/.idea/zigbrains.xml deleted file mode 100644 index 1adc00838fb8..000000000000 --- a/.idea/zigbrains.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file From 0c5b56ca0be90b7d814e4bf5365f7cab46a2d5d7 Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Wed, 5 Nov 2025 17:59:27 +0100 Subject: [PATCH 6/6] Remove .github --- .gitignore | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index bd79282ad79a..000000000000 --- a/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# This file is for zig-specific build artifacts. -# If you have OS-specific or editor-specific files to ignore, -# such as *.swp or .DS_Store, put those in your global -# ~/.gitignore and put this in your ~/.gitconfig: -# -# [core] -# excludesfile = ~/.gitignore -# -# Cheers! -# -andrewrk - -.idea -.zig-cache/ -zig-out/ -/release/ -/debug/ -/build/ -/build-*/ -/docgen_tmp/ - -# Although this was renamed to .zig-cache, let's leave it here for a few -# releases to make it less annoying to work with multiple branches. -zig-cache/