From d197289c331365081295cb44f27ee2893294cffa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 3 Nov 2026 16:17:51 -0300 Subject: test: the behaviour-test step and test/session.zig, T1 of docs/next-tests.md: a Session drives the core as a 9P client does (walk by path, open, read or write, clunk, held lines run at the clunk as src/9p_io.zig runs them), the core opaque and the step's module importing session alone, so a behavioural test cannot reach past the 9P tree; keys (kbdin), click (on text found on /screen, mousein), screen, focused, refused and the refusal's words; test/behaviour/{other_files,panes,edit}.zig, a file a section of the reference: kbdin and mousein, a collapsed pane's ctl, name's leading blank, Putall, Edit blocks, moved out of src/ninep/ctl.zig (an Edit block left open now checked as a client sees it, an err in the log at its clunk), each checked to fail against a break (collapsed left off the ctl read, Putall saving nothing); the plan doc says the layout, the decisions and the progress Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/behaviour.zig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/behaviour.zig (limited to 'test/behaviour.zig') diff --git a/test/behaviour.zig b/test/behaviour.zig new file mode 100644 index 00000000..31da19a1 --- /dev/null +++ b/test/behaviour.zig @@ -0,0 +1,9 @@ +//! The behavioural tests (docs/next-tests.md): a file a section of the +//! book, named by its label (`other-files` is other_files.zig), each test +//! named by the label first. This module imports test/session.zig alone, +//! so a test sees the session as a 9P client does. +test { + _ = @import("behaviour/edit.zig"); + _ = @import("behaviour/other_files.zig"); + _ = @import("behaviour/panes.zig"); +} -- cgit v1.3