0.16: testing.md + comptime.md from leaflet-search/zug work
testing.md: zig build test silently runs zero tests when blocks live
in non-root modules and only re-exports point at them. document the
test { _ = @import(...) } pattern, the verify-by-deliberate-failure
trick, and --summary all for spotting zero-discovery regressions.
comptime.md: string-type detection for anytype adapters (literals
and @tagName return *const [N:0]u8, not []const u8) and the
comptime-sql escape hatch — when adopting an external library that
builds sql at runtime, you need a parallel runtime path; don't try
to stringify through the comptime api.
both come out of leaflet-search adopting zug as a sqlite migration
runner: the test-discovery rule had been silently skipping ~5 test
blocks for months, and the @tagName type bit me when testing an
anytype adapter with pre-coerced []const u8 args.
Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>