Skip to content

Commit d77cac2

Browse files
committed
fix(tests): 修正测试中 Cat 结构体字段类型错误
1 parent 6c1649c commit d77cac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jkconfig/tests/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn test_value_integer_type_mismatch() {
204204
let cat_value = serde_json::json!({
205205
"animal": {
206206
"Cat": {
207-
"a": 3.14, // Should be integer, not float
207+
"a": 3.2, // Should be integer, not float
208208
"b": "test"
209209
}
210210
}
@@ -216,7 +216,7 @@ fn test_value_integer_type_mismatch() {
216216
jkconfig::data::schema::SchemaError::TypeMismatch {
217217
path,
218218
expected,
219-
actual,
219+
actual: _,
220220
} => {
221221
assert!(path.contains("animal.Cat.a"));
222222
assert_eq!(expected, "integer");

0 commit comments

Comments
 (0)