1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Equivalence tests for pattern validation and structure analysis
//!
//! These tests verify that validation and analysis functions in pattern-rs
//! work correctly with patterns generated by the gramref CLI tool.
//!
//! **Note**: Validation and analysis functions are NEW functionality in pattern-rs.
//! They do not exist in ../pattern-hs yet, so direct equivalence testing is not possible.
//! However, we can use the `gramref generate` command to create test patterns and then
//! validate/analyze them in pattern-rs to ensure our functions work correctly.
//!
//! **Important Distinction**:
//! - `../pattern-hs/libs/` = Haskell library reference implementation (source code to port)
//! - `gramref` = CLI tool for generating test patterns (testing utility)
use ;
// Framework for testing validation and analysis with gramref-generated patterns
// Usage: gramref generate --type suite --count N --format json --value-only
// TODO: Use gramref CLI to generate test patterns:
// gramref generate --type suite --count 100 --seed 42 --format json --value-only
// Then parse patterns and test validation/analysis functions
// Reference: docs/gramref-cli-testing-guide.md