Skip to content

Commit

Permalink
refactor: rename test file
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Sep 13, 2023
1 parent 85938a4 commit 86536c9
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 23 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "/// Sample type alias.\ntype Sample = u32;"
input_file: crates/stef-parser/tests/inputs/alias-basic.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "#[deprecated = \"don't use\"]\nstruct Sample"
input_file: crates/stef-parser/tests/inputs/attribute-single.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "#[deprecated]\nstruct Sample"
input_file: crates/stef-parser/tests/inputs/attribute-unit.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "#[deprecated = \"don't use\", compress]\n#[validate(\n in_range(min = 100, max = 200),\n non_empty,\n)]\nstruct Sample"
input_file: crates/stef-parser/tests/inputs/attributes.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "/// Enum with generics.\nenum Sample<A, B, C, D> {\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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "enum Sample<T>{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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "/// Basic struct.\nstruct Sample {\n a: u32 @1,\n b: bool @2,\n}\n\n/// Sample enum.\nenum Sample {\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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "/// Generic key-value pair.\nstruct KeyValue<K, V> {\n key: K @1,\n value: V @2,\n}"
input_file: crates/stef-parser/tests/inputs/struct-generics.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "/// Some comment\n struct Sample<\n A,\n B\n > {\n\n a: u32 @1,\n b: bool @2,\n\n }"
input_file: crates/stef-parser/tests/inputs/struct-many-ws.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "struct Sample<T>{a:u32@1,b:bool@2,c:T@3}"
input_file: crates/stef-parser/tests/inputs/struct-min-ws.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
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<string> @18,\n f19: box<bytes> @19,\n f20: (u32, u32, u32) @20,\n f21: [u32; 12] @21,\n}"
input_file: crates/stef-parser/tests/inputs/types-basic.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "struct Sample {\n f1: vec<u32> @1,\n f2: hash_map<u32, string> @2,\n f3: hash_set<u32> @3,\n f4: option<u32> @4,\n f5: non_zero<u32> @5,\n}"
input_file: crates/stef-parser/tests/inputs/types-generic.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "struct Sample {\n value: vec<option<non_zero<hash_map<i64, box<string>>>>> @1,\n}"
input_file: crates/stef-parser/tests/inputs/types-nested.stef
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/stef-build/tests/parser.rs
source: crates/stef-build/tests/compiler.rs
expression: "struct Sample {\n basic: Test123 @1,\n with_generics: KeyValue<u32, bool> @2,\n}"
input_file: crates/stef-parser/tests/inputs/types-ref.stef
---
Expand Down

0 comments on commit 86536c9

Please sign in to comment.