We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a64dc commit 443cf1eCopy full SHA for 443cf1e
1 file changed
crates/vespera_macro/src/openapi_generator.rs
@@ -877,11 +877,11 @@ pub fn get_users() -> String {
877
878
#[test]
879
fn test_extract_value_from_expr_float() {
880
- let expr: syn::Expr = syn::parse_str("3.14").unwrap();
+ let expr: syn::Expr = syn::parse_str("12.34").unwrap();
881
let value = extract_value_from_expr(&expr);
882
assert!(value.is_some());
883
if let Some(serde_json::Value::Number(n)) = value {
884
- assert!((n.as_f64().unwrap() - 3.14).abs() < 0.001);
+ assert!((n.as_f64().unwrap() - 12.34).abs() < 0.001);
885
}
886
887
0 commit comments