8.4. FFI Test Results
The FFI layer is tested through three independent paths:
8.4.1. Python FFI Tests
Two Python test suites validate the ctypes-based bindings:
-
FFI Integration Tests (
Tests/test_python_ffi.py) — tests the C shared library directly from Python -
Package Tests (
python/tests/) — tests thel4yamlPython package API
Results are captured as both text logs and JUnit XML, with an HTML report generated from the JUnit data.
8.4.2. Cross-Language Comparison
The cross-language comparison runs the full yaml-test-suite
through all four backends (Lean, C, Python, Rust) across
five limit presets (unlimited, default, strict,
permissive, safe_tags).
This verifies that the FFI layer preserves identical parsing behavior — every backend must produce the same pass/fail/skip results for every test case under every preset configuration.
Results are available at Cross-Language Comparison Report.