74a20055c3
Vier Snapshots in crates/ail/tests/snapshots/ (sum, max3, hello, list) sichern den erzeugten LLVM-IR. Test-Helper normalisiert target triple und trailing whitespace, sonst byte-für-byte-Vergleich. Update via UPDATE_SNAPSHOTS=1 cargo test ir_snapshot_. Mismatch erzeugt eine .actual-Datei mit dem aktuellen Output für Diff-Inspektion.
6 lines
97 B
Plaintext
6 lines
97 B
Plaintext
/target
|
|
*.ll.o
|
|
/build
|
|
crates/ail/tests/snapshots/*.actual
|
|
crates/ail/tests/snapshots/*.ll.actual
|