logigate/tests
Fabian Wagner 0e72c3dc38 A golden vectors: a conformance corpus dumped from the TS implementation
The Laravel backend has to re-run puzzle checks and count transistors
server-side, so its PHP port of compile, the simulator, analyze and the
puzzle scoring must agree with the TypeScript bit for bit.

tests/fixtures/golden.json holds what the TS computes today: 20 circuits
with their netlist shape, nand and transistor counts and truth tables,
324 scored runs with their exact pass/fail and message, six generated
weekly puzzles, and the seeded RNG sequences behind them. Four circuits
score as failures because they have no input or output pins; that is the
real behaviour and belongs in the corpus.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-11 17:51:18 +01:00
..
fixtures A golden vectors: a conformance corpus dumped from the TS implementation 2026-11-11 17:51:18 +01:00
asm.test.ts A assembler tool: your own instruction set as a table, labels, constants, .org/.word/.fill; copy as hex or binary, or load into the switch panels of memory you built 2026-10-28 12:59:18 +01:00
bench.test.ts R test bench is a wired part: drive and check columns as pins, its table on the box with a run button, failing rows red, a click puts a row on the circuit; dropped on a component it wires itself to every pin; docked benches upgrade 2026-10-28 13:30:07 +01:00
bulk.test.ts BF input panels are component inputs, cable ends plug in more reliably; A merge panels, hex pass-through, design a component's box 2026-10-21 13:49:29 +02:00
cables-ribbon.test.ts A one-click cable bundling with smarter placement, BF unlink keeps the cable 2026-10-21 11:21:35 +02:00
cables.test.ts A cables you place yourself, drawn as coloured ribbons 2026-10-21 10:39:54 +02:00
check.test.ts A Loxone-style working aids: named signals, inverted inputs, a project check, values on cables, search, printable sheets; wire ends move by dragging 2026-10-21 13:26:59 +02:00
compat.test.ts A settings for every part, overlap-free wiring with crossing styles, accounts with sync 2026-10-20 13:09:37 +02:00
connectors.test.ts A connector types of your own: HDMI, RJ45 or any bus, with out and in ports and one cable that carries every line both ways 2026-10-22 18:59:56 +02:00
convert.test.ts A converter tool: text in six encodings, hex, binary, decimal, octal, Base64; 8/16/32-bit words either byte order; Tools menu in the top bar 2026-10-28 12:54:23 +01:00
devices.test.ts A monitor (one bit a pixel) and RGB monitor: write the pixel at X, Y on a rising WR; terminal and monitors sized by the corner or by number, with ratio, presets and a quarter turn 2026-10-28 13:47:14 +01:00
drag.test.ts BF moving parts: bends that would run over a part or along another signal let go, the rest stays 2026-10-26 18:21:34 +01:00
durability.test.ts A crash-safe storage, savegames and daily backups 2026-10-20 13:20:55 +02:00
face.test.ts R box designer: size by the corner, reorder pins, pick and move several, pixels one by one, fitted boxes, displays from inside in free spots 2026-10-27 13:54:30 +01:00
features.test.ts A box selection picks up the wires and cables it crosses 2026-10-21 11:08:32 +02:00
fit.test.ts A wire a selection where it fits: green boxes over free pins in a row, and parts dropped onto a pin connect 2026-10-21 12:16:26 +02:00
game.test.ts A campaign with unlocks, synthesised sound, puzzles and the puzzle of the week 2026-10-20 19:54:57 +02:00
golden-vectors.test.ts A golden vectors: a conformance corpus dumped from the TS implementation 2026-11-11 17:51:18 +01:00
latch.test.ts A latch parts onto each other: pins touching, no wires, moving together 2026-10-23 15:34:36 +02:00
leaderboard.test.ts A main menu: free play, campaign, challenges and leaderboard over a circuit that builds itself 2026-10-22 12:22:35 +02:00
library-api.test.ts BF library: no solutions inside, nothing into a campaign, marks only from the entry, a small listing, updates clear what they replace 2026-10-26 18:44:13 +01:00
library.test.ts BF library: no solutions inside, nothing into a campaign, marks only from the entry, a small listing, updates clear what they replace 2026-10-26 18:44:13 +01:00
logic.test.ts A logigate: NAND-only logic editor and simulator with components, challenges and examples 2026-10-17 12:49:38 +02:00
nav-history.test.ts A browser back and forward through the circuits (mouse side buttons) 2026-10-26 23:04:32 +01:00
nav.test.ts R bars and panels fit small windows, Main always in reach; A Space search opens components 2026-10-26 18:12:40 +01:00
panels.test.ts R panel rows editor: drag to reorder, add above or below, gaps you can see, no folded settings 2026-10-23 12:59:16 +02:00
parts.test.ts A settings for every part, overlap-free wiring with crossing styles, accounts with sync 2026-10-20 13:09:37 +02:00
perf.test.ts A drop a cable's unused wires; BF pointed-at buttons let go, nothing pointed at while the view moves 2026-10-27 13:42:47 +01:00
plugs.test.ts A buttons beside the selection, a plug without a cable, bounds on split ports 2026-10-26 22:45:47 +01:00
ports.test.ts BF split ports: no wire against the cable, pins that stay put, lines kept on unpack 2026-10-26 18:38:32 +01:00
rgb.test.ts A RGB pixels: three inputs, eight colours, on the canvas and on a component's screen 2026-10-28 12:51:09 +01:00
routing.test.ts R wiring: nothing over or under parts, cables as wide as drawn, clear bridges, cables that split, tidy every circuit 2026-10-23 14:57:16 +02:00
scope.test.ts R logic analyzer is a wired part: channels as input pins, waves on its box; dropped on a component it watches all its outputs. Drops the floating panel and Watch in analyzer 2026-10-28 13:35:04 +01:00
signals.test.ts BF inverted inputs: lamps and outputs show the inverted value, and checks read it 2026-10-23 12:27:12 +02:00
state-editor.test.ts BF memory: a newer save brings its own bits, bits reach the account when you leave, room for them 2026-10-26 18:44:43 +01:00
state.test.ts BF memory: a newer save brings its own bits, bits reach the account when you leave, room for them 2026-10-26 18:44:43 +01:00
trim.test.ts A drop a cable's unused wires; BF pointed-at buttons let go, nothing pointed at while the view moves 2026-10-27 13:42:47 +01:00
wide.test.ts A compact tidy wiring, pass-through lamps and outputs, gates with up to 16 inputs 2026-10-20 20:09:23 +02:00
workflow.test.ts BF input panels are component inputs, cable ends plug in more reliably; A merge panels, hex pass-through, design a component's box 2026-10-21 13:49:29 +02:00