diff --git a/crates/stef-build/tests/compiler.rs b/crates/stef-build/tests/compiler.rs index 9431142..1266250 100644 --- a/crates/stef-build/tests/compiler.rs +++ b/crates/stef-build/tests/compiler.rs @@ -17,12 +17,12 @@ fn compile_schema() { #[test] fn compile_schema_extra() { - glob!("inputs-extra/*.stef", |path| { + glob!("inputs_extra/*.stef", |path| { let input = fs::read_to_string(path).unwrap(); let value = Schema::parse(input.as_str()).unwrap(); let value = stef_build::compile_schema(&value); let value = prettyplease::unparse(&syn::parse2(value.clone()).unwrap()); - assert_snapshot!("compile-extra", format!("{value}"), input.trim()); + assert_snapshot!("compile_extra", format!("{value}"), input.trim()); }); } diff --git a/crates/stef-build/tests/inputs-extra/alias.stef b/crates/stef-build/tests/inputs_extra/alias.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/alias.stef rename to crates/stef-build/tests/inputs_extra/alias.stef diff --git a/crates/stef-build/tests/inputs-extra/const.stef b/crates/stef-build/tests/inputs_extra/const.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/const.stef rename to crates/stef-build/tests/inputs_extra/const.stef diff --git a/crates/stef-build/tests/inputs-extra/enum.stef b/crates/stef-build/tests/inputs_extra/enum.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/enum.stef rename to crates/stef-build/tests/inputs_extra/enum.stef diff --git a/crates/stef-build/tests/inputs-extra/import.stef b/crates/stef-build/tests/inputs_extra/import.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/import.stef rename to crates/stef-build/tests/inputs_extra/import.stef diff --git a/crates/stef-build/tests/inputs-extra/module.stef b/crates/stef-build/tests/inputs_extra/module.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/module.stef rename to crates/stef-build/tests/inputs_extra/module.stef diff --git a/crates/stef-build/tests/inputs-extra/struct.stef b/crates/stef-build/tests/inputs_extra/struct.stef similarity index 100% rename from crates/stef-build/tests/inputs-extra/struct.stef rename to crates/stef-build/tests/inputs_extra/struct.stef diff --git a/crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@alias_basic.stef.snap similarity index 82% rename from crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@alias_basic.stef.snap index cd716b4..aaa498e 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@alias_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Sample type alias.\ntype Sample = u32;" -input_file: crates/stef-parser/tests/inputs/alias-basic.stef +input_file: crates/stef-parser/tests/inputs/alias_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute_multi.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute_multi.stef.snap index eafcbfa..97ad6a9 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute_multi.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "#[validate(min = 1, max = 100)]\nstruct Sample" -input_file: crates/stef-parser/tests/inputs/attribute-multi.stef +input_file: crates/stef-parser/tests/inputs/attribute_multi.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute_single.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute_single.stef.snap index 03b3a08..f4051a0 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute_single.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "#[deprecated = \"don't use\"]\nstruct Sample" -input_file: crates/stef-parser/tests/inputs/attribute-single.stef +input_file: crates/stef-parser/tests/inputs/attribute_single.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute_unit.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute_unit.stef.snap index bd0790f..38058da 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute_unit.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "#[deprecated]\nstruct Sample" -input_file: crates/stef-parser/tests/inputs/attribute-unit.stef +input_file: crates/stef-parser/tests/inputs/attribute_unit.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attributes_min_ws.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attributes_min_ws.stef.snap index 4fab8c9..d40aeac 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attributes_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "#[deprecated=\"don't use\",compress]\n#[validate(in_range(min=100,max=200),non_empty)]\nstruct Sample" -input_file: crates/stef-parser/tests/inputs/attributes-min-ws.stef +input_file: crates/stef-parser/tests/inputs/attributes_min_ws.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@const_basic.stef.snap similarity index 91% rename from crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@const_basic.stef.snap index 6703342..cd5a6ed 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@const_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "const BOOL_TRUE: bool = true;\nconst BOOL_FALSE: bool = false;\nconst INT: u32 = 100;\nconst FLOAT: f64 = 5.5;\nconst STRING: string = \"value\";\nconst BYTES: bytes = [1, 2, 3];" -input_file: crates/stef-parser/tests/inputs/const-basic.stef +input_file: crates/stef-parser/tests/inputs/const_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@const_string.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@const_string.stef.snap index 6505834..af14546 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@const_string.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "const SIMPLE: string = \"value\";\n\nconst NEWLINE_ESCAPE: string = \"one \\\n two \\\n three\\\n\";\n\nconst ESCAPES: string = \"escape basics \\r\\n \\t \\b \\f \\\\ \\\"\\\n hello\\\" \\n\\\n unicode \\u{2764} \\\n emoji ❤ \\\n\";\n\nconst MULTILINE: string = \"a\n b\n c\n\";" -input_file: crates/stef-parser/tests/inputs/const-string.stef +input_file: crates/stef-parser/tests/inputs/const_string.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum_basic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum_basic.stef.snap index 456082b..cfc8bdc 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Sample enum.\nenum Sample {\n One @1,\n /// Second variant\n Two(u32 @1, u64 @2) @2,\n Three {\n field1: u32 @1,\n /// Second field of third variant\n field2: bool @2,\n } @3,\n}" -input_file: crates/stef-parser/tests/inputs/enum-basic.stef +input_file: crates/stef-parser/tests/inputs/enum_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum_generics.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum_generics.stef.snap index 17ed14c..7e8ff94 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Enum with generics.\nenum Sample {\n One @1,\n Two(A @1, B @2) @2,\n Three {\n field1: C @1,\n field2: D @2,\n } @3,\n}" -input_file: crates/stef-parser/tests/inputs/enum-generics.stef +input_file: crates/stef-parser/tests/inputs/enum_generics.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum_many_ws.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum_many_ws.stef.snap index cfaa32d..a6ecc5f 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Sample enum.\n enum Sample {\n\n One @1,\n\n Two ( u32 @1, u64 @2) @2,\n\n Three {\n\n field1: u32 @1,\n\n field2: bool @2,\n\n } @3,\n\n }" -input_file: crates/stef-parser/tests/inputs/enum-many-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_many_ws.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum_min_ws.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum_min_ws.stef.snap index b09bb1d..f904f6d 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "enum Sample{One@1,Two(u32@1,u64@2,T@3)@2,Three{field1:u32@1,field2:bool@2,field3:T@3}@3}" -input_file: crates/stef-parser/tests/inputs/enum-min-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_min_ws.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@import_basic.stef.snap similarity index 78% rename from crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@import_basic.stef.snap index 8847423..bc6b26e 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@import_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "use other::schema::Sample;\nuse second::submodule;" -input_file: crates/stef-parser/tests/inputs/import-basic.stef +input_file: crates/stef-parser/tests/inputs/import_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@module_basic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@module_basic.stef.snap index 9d3db8a..d989fe2 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@module_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "mod a {\n /// Inner module\n mod b {\n enum Sample {\n One @1,\n }\n }\n\n struct Sample {\n value: u32 @1,\n }\n}" -input_file: crates/stef-parser/tests/inputs/module-basic.stef +input_file: crates/stef-parser/tests/inputs/module_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@schema_basic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@schema_basic.stef.snap index b0c6fab..9c0f86c 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@schema_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Basic struct.\nstruct SampleStruct {\n a: u32 @1,\n b: bool @2,\n}\n\n/// Sample enum.\nenum SampleEnum {\n One @1,\n Two(u32 @1, u64 @2) @2,\n Three {\n field1: u32 @1,\n field2: bool @2,\n } @3,\n}" -input_file: crates/stef-parser/tests/inputs/schema-basic.stef +input_file: crates/stef-parser/tests/inputs/schema_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct_basic.stef.snap similarity index 96% rename from crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct_basic.stef.snap index 92e2842..6c8d745 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Basic struct.\nstruct Sample {\n a: u32 @1,\n /// Second field\n b: bool @2,\n}" -input_file: crates/stef-parser/tests/inputs/struct-basic.stef +input_file: crates/stef-parser/tests/inputs/struct_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct_generics.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct_generics.stef.snap index 69c9c89..b50e06d 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Generic key-value pair.\nstruct KeyValue {\n key: K @1,\n value: V @2,\n}" -input_file: crates/stef-parser/tests/inputs/struct-generics.stef +input_file: crates/stef-parser/tests/inputs/struct_generics.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct_many_ws.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct_many_ws.stef.snap index 2f5f9be..01c05fa 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Some comment\n struct Sample<\n T\n > {\n\n a: u32 @1,\n b: bool @2,\n c: T @3,\n }" -input_file: crates/stef-parser/tests/inputs/struct-many-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_many_ws.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct_min_ws.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct_min_ws.stef.snap index 2ef926b..aa9412e 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample{a:u32@1,b:bool@2,c:T@3}" -input_file: crates/stef-parser/tests/inputs/struct-min-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_min_ws.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@struct-tuple.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct_tuple.stef.snap similarity index 96% rename from crates/stef-build/tests/snapshots/compiler__compile@struct-tuple.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct_tuple.stef.snap index 3c12a11..5a2b73c 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@struct-tuple.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct_tuple.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Basic struct.\nstruct Sample(u32 @1, bool @2)" -input_file: crates/stef-parser/tests/inputs/struct-tuple.stef +input_file: crates/stef-parser/tests/inputs/struct_tuple.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types_basic.stef.snap similarity index 99% rename from crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types_basic.stef.snap index de323c2..63e8e77 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n f01: bool @1,\n f02: u8 @2,\n f03: u16 @3,\n f04: u32 @4,\n f05: u64 @5,\n f06: u128 @6,\n f07: i8 @7,\n f08: i16 @8,\n f09: i32 @9,\n f10: i64 @10,\n f11: i128 @11,\n f12: f32 @12,\n f13: f64 @13,\n f14: string @14,\n f15: &string @15,\n f16: bytes @16,\n f17: &bytes @17,\n f18: box @18,\n f19: box @19,\n f20: (u32, u32, u32) @20,\n f21: [u32; 12] @21,\n}" -input_file: crates/stef-parser/tests/inputs/types-basic.stef +input_file: crates/stef-parser/tests/inputs/types_basic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types_generic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types_generic.stef.snap index a2735d6..de09c3a 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types_generic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n f1: vec @1,\n f2: hash_map @2,\n f3: hash_set @3,\n f4: option @4,\n f5: non_zero @5,\n}" -input_file: crates/stef-parser/tests/inputs/types-generic.stef +input_file: crates/stef-parser/tests/inputs/types_generic.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types_nested.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types_nested.stef.snap index ed1e30e..1fb2161 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types_nested.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n value: vec>>>> @1,\n}" -input_file: crates/stef-parser/tests/inputs/types-nested.stef +input_file: crates/stef-parser/tests/inputs/types_nested.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@types-non-zero.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types_non_zero.stef.snap similarity index 99% rename from crates/stef-build/tests/snapshots/compiler__compile@types-non-zero.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types_non_zero.stef.snap index 2d5f97f..60a6b61 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@types-non-zero.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types_non_zero.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n f01: non_zero @1,\n f02: non_zero @2,\n f03: non_zero @3,\n f04: non_zero @4,\n f05: non_zero @5,\n f06: non_zero @6,\n f07: non_zero @7,\n f08: non_zero @8,\n f09: non_zero @9,\n f10: non_zero @10,\n f11: non_zero @11,\n f12: non_zero @12,\n f13: non_zero> @13,\n f14: non_zero> @14,\n f15: non_zero> @15,\n}" -input_file: crates/stef-parser/tests/inputs/types-non-zero.stef +input_file: crates/stef-parser/tests/inputs/types_non_zero.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types_ref.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types_ref.stef.snap index c6e02c6..d579ada 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types_ref.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n basic: Test123 @1,\n with_generics: KeyValue @2,\n}\n\nenum Test123 {\n Value @1,\n}\n\nstruct KeyValue {\n key: K @1,\n value: V @2,\n}" -input_file: crates/stef-parser/tests/inputs/types-ref.stef +input_file: crates/stef-parser/tests/inputs/types_ref.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@alias.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@alias.stef.snap similarity index 82% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@alias.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@alias.stef.snap index 846f04e..0e6acf6 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@alias.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@alias.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Hello world!\ntype Sample = String;" -input_file: crates/stef-build/tests/inputs-extra/alias.stef +input_file: crates/stef-build/tests/inputs_extra/alias.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@const.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@const.stef.snap similarity index 91% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@const.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@const.stef.snap index 45c2e53..03f07bd 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@const.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@const.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// A bool.\nconst BOOL: bool = true;\n/// An integer.\nconst INT: u32 = 100;\n/// A float.\nconst FLOAT: f64 = 5.0;\n/// A string.\nconst STRING: string = \"hello\";\n/// Some bytes.\nconst BYTES: bytes = [1, 2, 3];" -input_file: crates/stef-build/tests/inputs-extra/const.stef +input_file: crates/stef-build/tests/inputs_extra/const.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@enum.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@enum.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@enum.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@enum.stef.snap index a2f4618..223a1df 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@enum.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@enum.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Hello world!\nenum Sample {\n Variant1 @1,\n Variant2(u32 @1, u8 @2) @2,\n Variant3 {\n field1: string @1,\n field2: vec @2,\n } @3,\n}" -input_file: crates/stef-build/tests/inputs-extra/enum.stef +input_file: crates/stef-build/tests/inputs_extra/enum.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@import.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@import.stef.snap similarity index 77% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@import.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@import.stef.snap index 7878630..01ec4b0 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@import.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@import.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "use other::module;\nuse other::module::Type;" -input_file: crates/stef-build/tests/inputs-extra/import.stef +input_file: crates/stef-build/tests/inputs_extra/import.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@module.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@module.stef.snap similarity index 81% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@module.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@module.stef.snap index 634ca79..8ff1e75 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@module.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@module.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Hello world!\nmod sample {}" -input_file: crates/stef-build/tests/inputs-extra/module.stef +input_file: crates/stef-build/tests/inputs_extra/module.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-build/tests/snapshots/compiler__compile-extra@struct.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile_extra@struct.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/compiler__compile-extra@struct.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile_extra@struct.stef.snap index 0638943..ed3dccf 100644 --- a/crates/stef-build/tests/snapshots/compiler__compile-extra@struct.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile_extra@struct.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-build/tests/compiler.rs expression: "/// Hello world!\nstruct Sample {\n field1: u32 @1,\n field2: bytes @2,\n field3: (bool, [i16; 4]) @3,\n}" -input_file: crates/stef-build/tests/inputs-extra/struct.stef +input_file: crates/stef-build/tests/inputs_extra/struct.stef --- #[allow(unused_imports)] use ::stef::buf::{Decode, Encode}; diff --git a/crates/stef-parser/tests/inputs/alias-basic.stef b/crates/stef-parser/tests/inputs/alias_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/alias-basic.stef rename to crates/stef-parser/tests/inputs/alias_basic.stef diff --git a/crates/stef-parser/tests/inputs/attribute-multi.stef b/crates/stef-parser/tests/inputs/attribute_multi.stef similarity index 100% rename from crates/stef-parser/tests/inputs/attribute-multi.stef rename to crates/stef-parser/tests/inputs/attribute_multi.stef diff --git a/crates/stef-parser/tests/inputs/attribute-single.stef b/crates/stef-parser/tests/inputs/attribute_single.stef similarity index 100% rename from crates/stef-parser/tests/inputs/attribute-single.stef rename to crates/stef-parser/tests/inputs/attribute_single.stef diff --git a/crates/stef-parser/tests/inputs/attribute-unit.stef b/crates/stef-parser/tests/inputs/attribute_unit.stef similarity index 100% rename from crates/stef-parser/tests/inputs/attribute-unit.stef rename to crates/stef-parser/tests/inputs/attribute_unit.stef diff --git a/crates/stef-parser/tests/inputs/attributes-min-ws.stef b/crates/stef-parser/tests/inputs/attributes_min_ws.stef similarity index 100% rename from crates/stef-parser/tests/inputs/attributes-min-ws.stef rename to crates/stef-parser/tests/inputs/attributes_min_ws.stef diff --git a/crates/stef-parser/tests/inputs/const-basic.stef b/crates/stef-parser/tests/inputs/const_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/const-basic.stef rename to crates/stef-parser/tests/inputs/const_basic.stef diff --git a/crates/stef-parser/tests/inputs/const-string.stef b/crates/stef-parser/tests/inputs/const_string.stef similarity index 100% rename from crates/stef-parser/tests/inputs/const-string.stef rename to crates/stef-parser/tests/inputs/const_string.stef diff --git a/crates/stef-parser/tests/inputs/enum-basic.stef b/crates/stef-parser/tests/inputs/enum_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/enum-basic.stef rename to crates/stef-parser/tests/inputs/enum_basic.stef diff --git a/crates/stef-parser/tests/inputs/enum-generics.stef b/crates/stef-parser/tests/inputs/enum_generics.stef similarity index 100% rename from crates/stef-parser/tests/inputs/enum-generics.stef rename to crates/stef-parser/tests/inputs/enum_generics.stef diff --git a/crates/stef-parser/tests/inputs/enum-many-ws.stef b/crates/stef-parser/tests/inputs/enum_many_ws.stef similarity index 100% rename from crates/stef-parser/tests/inputs/enum-many-ws.stef rename to crates/stef-parser/tests/inputs/enum_many_ws.stef diff --git a/crates/stef-parser/tests/inputs/enum-min-ws.stef b/crates/stef-parser/tests/inputs/enum_min_ws.stef similarity index 100% rename from crates/stef-parser/tests/inputs/enum-min-ws.stef rename to crates/stef-parser/tests/inputs/enum_min_ws.stef diff --git a/crates/stef-parser/tests/inputs/import-basic.stef b/crates/stef-parser/tests/inputs/import_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/import-basic.stef rename to crates/stef-parser/tests/inputs/import_basic.stef diff --git a/crates/stef-parser/tests/inputs/module-basic.stef b/crates/stef-parser/tests/inputs/module_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/module-basic.stef rename to crates/stef-parser/tests/inputs/module_basic.stef diff --git a/crates/stef-parser/tests/inputs/schema-basic.stef b/crates/stef-parser/tests/inputs/schema_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/schema-basic.stef rename to crates/stef-parser/tests/inputs/schema_basic.stef diff --git a/crates/stef-parser/tests/inputs/struct-basic.stef b/crates/stef-parser/tests/inputs/struct_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/struct-basic.stef rename to crates/stef-parser/tests/inputs/struct_basic.stef diff --git a/crates/stef-parser/tests/inputs/struct-generics.stef b/crates/stef-parser/tests/inputs/struct_generics.stef similarity index 100% rename from crates/stef-parser/tests/inputs/struct-generics.stef rename to crates/stef-parser/tests/inputs/struct_generics.stef diff --git a/crates/stef-parser/tests/inputs/struct-many-ws.stef b/crates/stef-parser/tests/inputs/struct_many_ws.stef similarity index 100% rename from crates/stef-parser/tests/inputs/struct-many-ws.stef rename to crates/stef-parser/tests/inputs/struct_many_ws.stef diff --git a/crates/stef-parser/tests/inputs/struct-min-ws.stef b/crates/stef-parser/tests/inputs/struct_min_ws.stef similarity index 100% rename from crates/stef-parser/tests/inputs/struct-min-ws.stef rename to crates/stef-parser/tests/inputs/struct_min_ws.stef diff --git a/crates/stef-parser/tests/inputs/struct-tuple.stef b/crates/stef-parser/tests/inputs/struct_tuple.stef similarity index 100% rename from crates/stef-parser/tests/inputs/struct-tuple.stef rename to crates/stef-parser/tests/inputs/struct_tuple.stef diff --git a/crates/stef-parser/tests/inputs/types-basic.stef b/crates/stef-parser/tests/inputs/types_basic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/types-basic.stef rename to crates/stef-parser/tests/inputs/types_basic.stef diff --git a/crates/stef-parser/tests/inputs/types-generic.stef b/crates/stef-parser/tests/inputs/types_generic.stef similarity index 100% rename from crates/stef-parser/tests/inputs/types-generic.stef rename to crates/stef-parser/tests/inputs/types_generic.stef diff --git a/crates/stef-parser/tests/inputs/types-nested.stef b/crates/stef-parser/tests/inputs/types_nested.stef similarity index 100% rename from crates/stef-parser/tests/inputs/types-nested.stef rename to crates/stef-parser/tests/inputs/types_nested.stef diff --git a/crates/stef-parser/tests/inputs/types-non-zero.stef b/crates/stef-parser/tests/inputs/types_non_zero.stef similarity index 100% rename from crates/stef-parser/tests/inputs/types-non-zero.stef rename to crates/stef-parser/tests/inputs/types_non_zero.stef diff --git a/crates/stef-parser/tests/inputs/types-ref.stef b/crates/stef-parser/tests/inputs/types_ref.stef similarity index 100% rename from crates/stef-parser/tests/inputs/types-ref.stef rename to crates/stef-parser/tests/inputs/types_ref.stef diff --git a/crates/stef-parser/tests/snapshots/parser__parse@alias-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@alias_basic.stef.snap similarity index 90% rename from crates/stef-parser/tests/snapshots/parser__parse@alias-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@alias_basic.stef.snap index 22dc13c..c699425 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@alias-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@alias_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/alias-basic.stef +input_file: crates/stef-parser/tests/inputs/alias_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@attribute-multi.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@attribute_multi.stef.snap similarity index 96% rename from crates/stef-parser/tests/snapshots/parser__parse@attribute-multi.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@attribute_multi.stef.snap index 5571063..75fde1c 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@attribute-multi.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@attribute_multi.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-multi.stef +input_file: crates/stef-parser/tests/inputs/attribute_multi.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@attribute-single.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@attribute_single.stef.snap similarity index 92% rename from crates/stef-parser/tests/snapshots/parser__parse@attribute-single.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@attribute_single.stef.snap index 0f6b34b..0043e41 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@attribute-single.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@attribute_single.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-single.stef +input_file: crates/stef-parser/tests/inputs/attribute_single.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@attribute-unit.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@attribute_unit.stef.snap similarity index 91% rename from crates/stef-parser/tests/snapshots/parser__parse@attribute-unit.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@attribute_unit.stef.snap index de5a09c..e598242 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@attribute-unit.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@attribute_unit.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-unit.stef +input_file: crates/stef-parser/tests/inputs/attribute_unit.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@attributes-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@attributes_min_ws.stef.snap similarity index 97% rename from crates/stef-parser/tests/snapshots/parser__parse@attributes-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@attributes_min_ws.stef.snap index 51ba7ae..435b129 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@attributes-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@attributes_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attributes-min-ws.stef +input_file: crates/stef-parser/tests/inputs/attributes_min_ws.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@const-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@const_basic.stef.snap similarity index 96% rename from crates/stef-parser/tests/snapshots/parser__parse@const-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@const_basic.stef.snap index bda0579..7d78d13 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@const-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@const_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/const-basic.stef +input_file: crates/stef-parser/tests/inputs/const_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@const-string.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@const_string.stef.snap similarity index 95% rename from crates/stef-parser/tests/snapshots/parser__parse@const-string.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@const_string.stef.snap index 94c1ab4..587ebc5 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@const-string.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@const_string.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/const-string.stef +input_file: crates/stef-parser/tests/inputs/const_string.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@enum-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@enum_basic.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@enum-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@enum_basic.stef.snap index c6baa25..65019cd 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@enum-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@enum_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-basic.stef +input_file: crates/stef-parser/tests/inputs/enum_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@enum-generics.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@enum_generics.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@enum-generics.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@enum_generics.stef.snap index 36b41fe..6d198e1 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@enum-generics.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@enum_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-generics.stef +input_file: crates/stef-parser/tests/inputs/enum_generics.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@enum-many-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@enum_many_ws.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@enum-many-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@enum_many_ws.stef.snap index dbffe5a..b14226a 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@enum-many-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@enum_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-many-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_many_ws.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@enum-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@enum_min_ws.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@enum-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@enum_min_ws.stef.snap index b49bd3d..e7dc579 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@enum-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@enum_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-min-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_min_ws.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@import-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@import_basic.stef.snap similarity index 90% rename from crates/stef-parser/tests/snapshots/parser__parse@import-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@import_basic.stef.snap index d0d5394..7bddf1d 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@import-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@import_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/import-basic.stef +input_file: crates/stef-parser/tests/inputs/import_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@module-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@module_basic.stef.snap similarity index 98% rename from crates/stef-parser/tests/snapshots/parser__parse@module-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@module_basic.stef.snap index eec1432..14f1560 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@module-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@module_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/module-basic.stef +input_file: crates/stef-parser/tests/inputs/module_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@schema-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@schema_basic.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@schema-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@schema_basic.stef.snap index 739a78f..da6c919 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@schema-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@schema_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/schema-basic.stef +input_file: crates/stef-parser/tests/inputs/schema_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@struct-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@struct_basic.stef.snap similarity index 97% rename from crates/stef-parser/tests/snapshots/parser__parse@struct-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@struct_basic.stef.snap index 8dd810c..885acbc 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@struct-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@struct_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-basic.stef +input_file: crates/stef-parser/tests/inputs/struct_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@struct-generics.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@struct_generics.stef.snap similarity index 98% rename from crates/stef-parser/tests/snapshots/parser__parse@struct-generics.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@struct_generics.stef.snap index 329aba0..0687b20 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@struct-generics.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@struct_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-generics.stef +input_file: crates/stef-parser/tests/inputs/struct_generics.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@struct-many-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@struct_many_ws.stef.snap similarity index 98% rename from crates/stef-parser/tests/snapshots/parser__parse@struct-many-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@struct_many_ws.stef.snap index 1221cc6..857c145 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@struct-many-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@struct_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-many-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_many_ws.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@struct-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@struct_min_ws.stef.snap similarity index 98% rename from crates/stef-parser/tests/snapshots/parser__parse@struct-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@struct_min_ws.stef.snap index bcfce38..61f4d20 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@struct-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@struct_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-min-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_min_ws.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@struct-tuple.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@struct_tuple.stef.snap similarity index 96% rename from crates/stef-parser/tests/snapshots/parser__parse@struct-tuple.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@struct_tuple.stef.snap index db9fda7..ee04adb 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@struct-tuple.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@struct_tuple.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-tuple.stef +input_file: crates/stef-parser/tests/inputs/struct_tuple.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@types-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@types_basic.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@types-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@types_basic.stef.snap index 4f101c5..ad26b9b 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@types-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@types_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-basic.stef +input_file: crates/stef-parser/tests/inputs/types_basic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@types-generic.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@types_generic.stef.snap similarity index 98% rename from crates/stef-parser/tests/snapshots/parser__parse@types-generic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@types_generic.stef.snap index 0244523..6639a8f 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@types-generic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@types_generic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-generic.stef +input_file: crates/stef-parser/tests/inputs/types_generic.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@types-nested.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@types_nested.stef.snap similarity index 96% rename from crates/stef-parser/tests/snapshots/parser__parse@types-nested.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@types_nested.stef.snap index 7a3aaa2..6851984 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@types-nested.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@types_nested.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-nested.stef +input_file: crates/stef-parser/tests/inputs/types_nested.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@types-non-zero.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@types_non_zero.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@types-non-zero.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@types_non_zero.stef.snap index 7575b19..f4cb3fc 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@types-non-zero.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@types_non_zero.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-non-zero.stef +input_file: crates/stef-parser/tests/inputs/types_non_zero.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__parse@types-ref.stef.snap b/crates/stef-parser/tests/snapshots/parser__parse@types_ref.stef.snap similarity index 99% rename from crates/stef-parser/tests/snapshots/parser__parse@types-ref.stef.snap rename to crates/stef-parser/tests/snapshots/parser__parse@types_ref.stef.snap index 2d217cf..980319f 100644 --- a/crates/stef-parser/tests/snapshots/parser__parse@types-ref.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__parse@types_ref.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-ref.stef +input_file: crates/stef-parser/tests/inputs/types_ref.stef --- Schema { definitions: [ diff --git a/crates/stef-parser/tests/snapshots/parser__print@alias-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@alias_basic.stef.snap similarity index 70% rename from crates/stef-parser/tests/snapshots/parser__print@alias-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@alias_basic.stef.snap index dc0ecf6..12ec96b 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@alias-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@alias_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/alias-basic.stef +input_file: crates/stef-parser/tests/inputs/alias_basic.stef --- /// Sample type alias. type Sample = u32; diff --git a/crates/stef-parser/tests/snapshots/parser__print@attribute-multi.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@attribute_multi.stef.snap similarity index 70% rename from crates/stef-parser/tests/snapshots/parser__print@attribute-multi.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@attribute_multi.stef.snap index d7616ab..6bbf6bd 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@attribute-multi.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@attribute_multi.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-multi.stef +input_file: crates/stef-parser/tests/inputs/attribute_multi.stef --- #[validate(min = 1, max = 100)] struct Sample diff --git a/crates/stef-parser/tests/snapshots/parser__print@attribute-single.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@attribute_single.stef.snap similarity index 70% rename from crates/stef-parser/tests/snapshots/parser__print@attribute-single.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@attribute_single.stef.snap index d1d7e1a..a9f2da8 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@attribute-single.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@attribute_single.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-single.stef +input_file: crates/stef-parser/tests/inputs/attribute_single.stef --- #[deprecated = "don't use"] struct Sample diff --git a/crates/stef-parser/tests/snapshots/parser__print@attribute-unit.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@attribute_unit.stef.snap similarity index 68% rename from crates/stef-parser/tests/snapshots/parser__print@attribute-unit.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@attribute_unit.stef.snap index 7943c33..5e738bf 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@attribute-unit.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@attribute_unit.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attribute-unit.stef +input_file: crates/stef-parser/tests/inputs/attribute_unit.stef --- #[deprecated] struct Sample diff --git a/crates/stef-parser/tests/snapshots/parser__print@attributes-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@attributes_min_ws.stef.snap similarity index 77% rename from crates/stef-parser/tests/snapshots/parser__print@attributes-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@attributes_min_ws.stef.snap index b2ef182..2dcc3bc 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@attributes-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@attributes_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/attributes-min-ws.stef +input_file: crates/stef-parser/tests/inputs/attributes_min_ws.stef --- #[deprecated = "don't use", compress, validate(in_range(min = 100, max = 200), non_empty)] struct Sample diff --git a/crates/stef-parser/tests/snapshots/parser__print@const-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@const_basic.stef.snap similarity index 82% rename from crates/stef-parser/tests/snapshots/parser__print@const-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@const_basic.stef.snap index cbc3f55..7dc6cb1 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@const-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@const_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/const-basic.stef +input_file: crates/stef-parser/tests/inputs/const_basic.stef --- const BOOL_TRUE: bool = true; const BOOL_FALSE: bool = false; diff --git a/crates/stef-parser/tests/snapshots/parser__print@const-string.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@const_string.stef.snap similarity index 84% rename from crates/stef-parser/tests/snapshots/parser__print@const-string.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@const_string.stef.snap index 7093104..cdd4a29 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@const-string.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@const_string.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/const-string.stef +input_file: crates/stef-parser/tests/inputs/const_string.stef --- const SIMPLE: string = "value"; const NEWLINE_ESCAPE: string = "one two three"; diff --git a/crates/stef-parser/tests/snapshots/parser__print@enum-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@enum_basic.stef.snap similarity index 84% rename from crates/stef-parser/tests/snapshots/parser__print@enum-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@enum_basic.stef.snap index 9b792ed..c9b656d 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@enum-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@enum_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-basic.stef +input_file: crates/stef-parser/tests/inputs/enum_basic.stef --- /// Sample enum. enum Sample { diff --git a/crates/stef-parser/tests/snapshots/parser__print@enum-generics.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@enum_generics.stef.snap similarity index 80% rename from crates/stef-parser/tests/snapshots/parser__print@enum-generics.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@enum_generics.stef.snap index 0f824a6..5f07ae7 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@enum-generics.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@enum_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-generics.stef +input_file: crates/stef-parser/tests/inputs/enum_generics.stef --- /// Enum with generics. enum Sample { diff --git a/crates/stef-parser/tests/snapshots/parser__print@enum-many-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@enum_many_ws.stef.snap similarity index 80% rename from crates/stef-parser/tests/snapshots/parser__print@enum-many-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@enum_many_ws.stef.snap index 1d30b39..0ba9444 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@enum-many-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@enum_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-many-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_many_ws.stef --- /// Sample enum. enum Sample { diff --git a/crates/stef-parser/tests/snapshots/parser__print@enum-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@enum_min_ws.stef.snap similarity index 81% rename from crates/stef-parser/tests/snapshots/parser__print@enum-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@enum_min_ws.stef.snap index b4a965a..6b9e611 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@enum-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@enum_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/enum-min-ws.stef +input_file: crates/stef-parser/tests/inputs/enum_min_ws.stef --- enum Sample { One @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@import-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@import_basic.stef.snap similarity index 71% rename from crates/stef-parser/tests/snapshots/parser__print@import-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@import_basic.stef.snap index 6b824c6..2295634 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@import-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@import_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/import-basic.stef +input_file: crates/stef-parser/tests/inputs/import_basic.stef --- use other::schema::Sample; use second::submodule; diff --git a/crates/stef-parser/tests/snapshots/parser__print@module-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@module_basic.stef.snap similarity index 80% rename from crates/stef-parser/tests/snapshots/parser__print@module-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@module_basic.stef.snap index 0a2b69f..4d4da9a 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@module-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@module_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/module-basic.stef +input_file: crates/stef-parser/tests/inputs/module_basic.stef --- mod a { /// Inner module diff --git a/crates/stef-parser/tests/snapshots/parser__print@schema-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@schema_basic.stef.snap similarity index 84% rename from crates/stef-parser/tests/snapshots/parser__print@schema-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@schema_basic.stef.snap index 6d285fe..4037e6c 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@schema-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@schema_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/schema-basic.stef +input_file: crates/stef-parser/tests/inputs/schema_basic.stef --- /// Basic struct. struct SampleStruct { diff --git a/crates/stef-parser/tests/snapshots/parser__print@struct-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@struct_basic.stef.snap similarity index 75% rename from crates/stef-parser/tests/snapshots/parser__print@struct-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@struct_basic.stef.snap index 28e6590..ae5a760 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@struct-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@struct_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-basic.stef +input_file: crates/stef-parser/tests/inputs/struct_basic.stef --- /// Basic struct. struct Sample { diff --git a/crates/stef-parser/tests/snapshots/parser__print@struct-generics.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@struct_generics.stef.snap similarity index 75% rename from crates/stef-parser/tests/snapshots/parser__print@struct-generics.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@struct_generics.stef.snap index 09ea6fe..1550600 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@struct-generics.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@struct_generics.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-generics.stef +input_file: crates/stef-parser/tests/inputs/struct_generics.stef --- /// Generic key-value pair. struct KeyValue { diff --git a/crates/stef-parser/tests/snapshots/parser__print@struct-many-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@struct_many_ws.stef.snap similarity index 74% rename from crates/stef-parser/tests/snapshots/parser__print@struct-many-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@struct_many_ws.stef.snap index 1192a8a..9d26cde 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@struct-many-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@struct_many_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-many-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_many_ws.stef --- /// Some comment struct Sample { diff --git a/crates/stef-parser/tests/snapshots/parser__print@struct-min-ws.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@struct_min_ws.stef.snap similarity index 73% rename from crates/stef-parser/tests/snapshots/parser__print@struct-min-ws.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@struct_min_ws.stef.snap index 9098f11..c9f086d 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@struct-min-ws.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@struct_min_ws.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-min-ws.stef +input_file: crates/stef-parser/tests/inputs/struct_min_ws.stef --- struct Sample { a: u32 @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@struct-tuple.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@struct_tuple.stef.snap similarity index 71% rename from crates/stef-parser/tests/snapshots/parser__print@struct-tuple.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@struct_tuple.stef.snap index b5a0274..b44b6ad 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@struct-tuple.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@struct_tuple.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/struct-tuple.stef +input_file: crates/stef-parser/tests/inputs/struct_tuple.stef --- /// Basic struct. struct Sample(u32 @1, bool @2) diff --git a/crates/stef-parser/tests/snapshots/parser__print@types-basic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@types_basic.stef.snap similarity index 89% rename from crates/stef-parser/tests/snapshots/parser__print@types-basic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@types_basic.stef.snap index 37a4737..555c98c 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@types-basic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@types_basic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-basic.stef +input_file: crates/stef-parser/tests/inputs/types_basic.stef --- struct Sample { f01: bool @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@types-generic.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@types_generic.stef.snap similarity index 80% rename from crates/stef-parser/tests/snapshots/parser__print@types-generic.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@types_generic.stef.snap index eb1e829..d1a6960 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@types-generic.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@types_generic.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-generic.stef +input_file: crates/stef-parser/tests/inputs/types_generic.stef --- struct Sample { f1: vec @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@types-nested.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@types_nested.stef.snap similarity index 75% rename from crates/stef-parser/tests/snapshots/parser__print@types-nested.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@types_nested.stef.snap index 06efc0a..a660646 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@types-nested.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@types_nested.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-nested.stef +input_file: crates/stef-parser/tests/inputs/types_nested.stef --- struct Sample { value: vec>>>> @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@types-non-zero.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@types_non_zero.stef.snap similarity index 90% rename from crates/stef-parser/tests/snapshots/parser__print@types-non-zero.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@types_non_zero.stef.snap index 15367bf..151baea 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@types-non-zero.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@types_non_zero.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-non-zero.stef +input_file: crates/stef-parser/tests/inputs/types_non_zero.stef --- struct Sample { f01: non_zero @1, diff --git a/crates/stef-parser/tests/snapshots/parser__print@types-ref.stef.snap b/crates/stef-parser/tests/snapshots/parser__print@types_ref.stef.snap similarity index 82% rename from crates/stef-parser/tests/snapshots/parser__print@types-ref.stef.snap rename to crates/stef-parser/tests/snapshots/parser__print@types_ref.stef.snap index 031443c..246f7fc 100644 --- a/crates/stef-parser/tests/snapshots/parser__print@types-ref.stef.snap +++ b/crates/stef-parser/tests/snapshots/parser__print@types_ref.stef.snap @@ -1,7 +1,7 @@ --- source: crates/stef-parser/tests/parser.rs expression: "Schema :: parse(input.as_str()).unwrap()" -input_file: crates/stef-parser/tests/inputs/types-ref.stef +input_file: crates/stef-parser/tests/inputs/types_ref.stef --- struct Sample { basic: Test123 @1, diff --git a/crates/stef-playground/src/lib.rs b/crates/stef-playground/src/lib.rs index 40e08d7..3922e4c 100644 --- a/crates/stef-playground/src/lib.rs +++ b/crates/stef-playground/src/lib.rs @@ -9,23 +9,23 @@ mod sample { mod schemas { mod alias_basic { - include!(concat!(env!("OUT_DIR"), "/alias-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/alias_basic.rs")); } mod attribute_multi { - include!(concat!(env!("OUT_DIR"), "/attribute-multi.rs")); + include!(concat!(env!("OUT_DIR"), "/attribute_multi.rs")); } mod attribute_single { - include!(concat!(env!("OUT_DIR"), "/attribute-single.rs")); + include!(concat!(env!("OUT_DIR"), "/attribute_single.rs")); } mod attribute_unit { - include!(concat!(env!("OUT_DIR"), "/attribute-unit.rs")); + include!(concat!(env!("OUT_DIR"), "/attribute_unit.rs")); } mod attributes_min_ws { - include!(concat!(env!("OUT_DIR"), "/attributes-min-ws.rs")); + include!(concat!(env!("OUT_DIR"), "/attributes_min_ws.rs")); } mod attributes { @@ -33,80 +33,80 @@ mod schemas { } mod const_basic { - include!(concat!(env!("OUT_DIR"), "/const-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/const_basic.rs")); } mod const_string { - include!(concat!(env!("OUT_DIR"), "/const-string.rs")); + include!(concat!(env!("OUT_DIR"), "/const_string.rs")); } mod enum_basic { - include!(concat!(env!("OUT_DIR"), "/enum-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/enum_basic.rs")); } mod enum_generics { - include!(concat!(env!("OUT_DIR"), "/enum-generics.rs")); + include!(concat!(env!("OUT_DIR"), "/enum_generics.rs")); } mod enum_many_ws { - include!(concat!(env!("OUT_DIR"), "/enum-many-ws.rs")); + include!(concat!(env!("OUT_DIR"), "/enum_many_ws.rs")); } mod enum_min_ws { - include!(concat!(env!("OUT_DIR"), "/enum-min-ws.rs")); + include!(concat!(env!("OUT_DIR"), "/enum_min_ws.rs")); } // TODO: implement imports // mod import_basic { - // include!(concat!(env!("OUT_DIR"), "/import-basic.rs")); + // include!(concat!(env!("OUT_DIR"), "/import_basic.rs")); // } mod module_basic { - include!(concat!(env!("OUT_DIR"), "/module-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/module_basic.rs")); } mod schema_basic { - include!(concat!(env!("OUT_DIR"), "/schema-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/schema_basic.rs")); } mod struct_basic { - include!(concat!(env!("OUT_DIR"), "/struct-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/struct_basic.rs")); } mod struct_generics { - include!(concat!(env!("OUT_DIR"), "/struct-generics.rs")); + include!(concat!(env!("OUT_DIR"), "/struct_generics.rs")); } mod struct_many_ws { - include!(concat!(env!("OUT_DIR"), "/struct-many-ws.rs")); + include!(concat!(env!("OUT_DIR"), "/struct_many_ws.rs")); } mod struct_min_ws { - include!(concat!(env!("OUT_DIR"), "/struct-min-ws.rs")); + include!(concat!(env!("OUT_DIR"), "/struct_min_ws.rs")); } mod struct_tuple { - include!(concat!(env!("OUT_DIR"), "/struct-tuple.rs")); + include!(concat!(env!("OUT_DIR"), "/struct_tuple.rs")); } mod types_basic { - include!(concat!(env!("OUT_DIR"), "/types-basic.rs")); + include!(concat!(env!("OUT_DIR"), "/types_basic.rs")); } mod types_generic { - include!(concat!(env!("OUT_DIR"), "/types-generic.rs")); + include!(concat!(env!("OUT_DIR"), "/types_generic.rs")); } mod types_nested { - include!(concat!(env!("OUT_DIR"), "/types-nested.rs")); + include!(concat!(env!("OUT_DIR"), "/types_nested.rs")); } mod types_non_zero { - include!(concat!(env!("OUT_DIR"), "/types-non-zero.rs")); + include!(concat!(env!("OUT_DIR"), "/types_non_zero.rs")); } mod types_ref { - include!(concat!(env!("OUT_DIR"), "/types-ref.rs")); + include!(concat!(env!("OUT_DIR"), "/types_ref.rs")); } }