Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Sep 23, 2024
1 parent 27d9f59 commit 0eaa039
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,23 @@ mod tests {
fn test_model_non_builder() {
// Build the 'Object' struct
test::Object {
additional_properties: None,
string_value: Some("Hello, World!".to_string()),
integer_value: Some(42),
float_value: Some(3.2),
boolean_value: Some(true),
multiple_values: Some(vec![1.12, 1.0]),
nested_object: Some(test::Nested {
additional_properties: None,
value: Some("nested".to_string()),
}),
multiple_nested_objects: vec![
test::Nested {
additional_properties: None,
value: Some("nested1".to_string()),
},
test::Nested {
additional_properties: None,
value: Some("nested2".to_string()),
},
],
Expand Down Expand Up @@ -79,7 +83,7 @@ mod tests {
"value": "nested2"
}
],
"enum_value": "Value"
"enum_value": "value"
}
"#;

Expand Down

0 comments on commit 0eaa039

Please sign in to comment.