cairo-lang-syntax-codegen 2.9.2

Cairo syntax code generation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fs;

use test_log::test;

use crate::generator::{get_codes, project_root};

#[test]
fn sourcegen_ast() {
    for (suffix, code) in get_codes() {
        let filename = project_root().join(suffix);
        if fs::read_to_string(filename).unwrap() != code {
            panic!("Some files are not up to date. Please run `cargo run --bin generate-syntax`");
        }
    }
}