-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
38 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 6 additions & 25 deletions
31
...napshots/kickstart__definition__tests__can_validate_definition@unsupported_type.toml.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
--- | ||
source: src/definition.rs | ||
expression: "&errs" | ||
expression: "&e" | ||
input_file: src/snapshots/validation/unsupported_type.toml | ||
--- | ||
Err( | ||
Error { | ||
kind: Toml { | ||
err: Error { | ||
inner: Error { | ||
inner: TomlError { | ||
message: "Value 1.2 (of type `float`) is not allowed as a value: only strings, integers and boolean are.", | ||
raw: Some( | ||
"name = \"Test template\"\ndescription = \"A description\"\nkickstart_version = 1\n\n[[variables]]\nname = \"project_name\"\ndefault = 1.2\nprompt = \"What's the name of your project?\"\nvalidation = \"^([a-zA-Z][a-zA-Z0-9_-]+)$\"", | ||
), | ||
keys: [ | ||
"variables", | ||
"default", | ||
], | ||
span: Some( | ||
122..125, | ||
), | ||
}, | ||
}, | ||
}, | ||
}, | ||
source: None, | ||
}, | ||
) | ||
Invalid TOML: TOML parse error at line 7, column 11 | ||
| | ||
7 | default = 1.2 | ||
| ^^^ | ||
Value 1.2 (of type `float`) is not allowed as a value: only strings, integers and boolean are. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,4 @@ source: src/definition.rs | |
expression: "&errs" | ||
input_file: src/snapshots/validation/valid.toml | ||
--- | ||
Ok( | ||
[], | ||
) | ||
[] |