summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 13:28:30 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:24:59 -0300
commit0f81de017ca7b52e951bb70f6f5f3e8c88b425e6 (patch)
treefde88db0ed0dd68fbeb7bf7aaa49d3cd1f08b1c1 /test
parentb7fdfb18ffd199d49a254c1c799bc3415ad45ec2 (diff)
downloadpardes-0f81de017ca7b52e951bb70f6f5f3e8c88b425e6.tar.gz
pardes-0f81de017ca7b52e951bb70f6f5f3e8c88b425e6.zip
kinds #25, addons in Zig: src/kinds/addon.zig, over the translated header and nothing of the core, makes a kind's pa_ops from a struct of the functions it has (its head from name, version, extensions and words; a public function of no kind's name a compile error), the pane's arena and a job's pa_out as std Allocators, typed keys, a Window to put text in, a Paint for the prefix and placements, tick's flags and a Deadline, dump and load as an extern struct's bytes in one line each, and body and ctl over a Writer; snake.zig and image.zig (stb_image in stb.c, static, beside any zstbi) replace snake.c and image.c with the same goldens, harness and perf cell, and addon-test runs their own zig tests
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test')
-rw-r--r--test/panes.zig2
-rw-r--r--test/session.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/panes.zig b/test/panes.zig
index d16de109..d1c8af02 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -2245,7 +2245,7 @@ const OutputTests = struct {
}
};
-/// The image addon (addons/image/image.c), loaded as `Addon load` loads it.
+/// The image addon (addons/image/image.zig), loaded as `Addon load` loads it.
const ImageTests = struct {
fn load(p: *Pardes) u8 {
pardes.Addon.perform(p, .load, 0, @import("test_addons").image);
diff --git a/test/session.zig b/test/session.zig
index 7399ab0f..8c71cfb1 100644
--- a/test/session.zig
+++ b/test/session.zig
@@ -13,7 +13,7 @@ const Reply = pardes.ctlfs.Reply;
extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int;
pub const Session = struct {
- /// The image addon (addons/image/image.c), as the build installs it.
+ /// The image addon (addons/image/image.zig), as the build installs it.
pub const image_addon = @import("session_options").image_addon;
/// The fake addon, and its copies built wrong (build.zig).
pub const fake_addons = struct {