diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 02:11:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 04:20:25 -0300 |
| commit | 5922ee911b9a6604f60dc83be36ba9e6c9abac98 (patch) | |
| tree | 310b983f5205709e5db173f9f1bc8e8d499d24fe /anim/test/recordings.zig | |
| parent | 64e64c74be6a3e46abeae8a30dd42efff91aaf91 (diff) | |
| download | computeranim-5922ee911b9a6604f60dc83be36ba9e6c9abac98.tar.gz computeranim-5922ee911b9a6604f60dc83be36ba9e6c9abac98.zip | |
canim: what the second review found, fixed
A system call stepped over plays in order: the registers set, the
crossing from the call row with the kernel's window under it, the stores
after rax. A strike covers the bytes that changed. The band's view
changes with the argument framing. In the descent a callee sits under
its caller's return row, and rows fade before others glide. The heap
scene follows the storyboard's nine captions: pushes at a run without
marks, each free and the malloc that takes the head back walked, the
tcache's loupe over the stack and closed with each advance, a chunk in
neither list drawn, the freed node travelling to malloc's row. In the
dive the map falls into the corner and becomes the minimap; on the map
boxes are as long as their rows. A narrow read is shown at its width.
The chart checks captions and one-frame changes.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/test/recordings.zig')
| -rw-r--r-- | anim/test/recordings.zig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/anim/test/recordings.zig b/anim/test/recordings.zig index 3634ee9..38798af 100644 --- a/anim/test/recordings.zig +++ b/anim/test/recordings.zig @@ -90,12 +90,14 @@ test "a walked step is as long as what it changed: fire, a slot a level, the hol var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() }; scene.frame(&frame); const t = canim.theme.time; - // main's line calls fib(5): registers, the stack, the call, 0.30 s - // apart; the call's node when the projection from its way back arrives. + // main's line calls fib(5): its two registers (rdi, rsp) 6 f apart, + // the stack 0.30 s after the second, the call's node when the + // projection from its way back arrives. const from = rec.lineMoment(10, rec.call("main", 0).enter); const call = scene.at.reading(from, rec.next(.line, from)); - try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade), call.at[1], 1e-4); - try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + t.project.bracket + t.project.far), call.at[2], 1e-4); + const second: f32 = 6.0 / 60.0; + try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + second), call.at[1], 1e-4); + try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + second + t.project.bracket + t.project.far), call.at[2], 1e-4); try expect(call.total > 2.0 and call.total < 3.5); // A line that changes nothing shown: fire, advance, rest. var quiet = scene.at; |
