Add a test for #3139
This commit is contained in:
parent
8fb1b179bf
commit
131f11a6e5
@ -121,3 +121,11 @@ fn issue3117() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// #3139
|
||||
fn issue3139() {
|
||||
assert_eq!(
|
||||
to_json_value(&None :: <i32>).unwrap(),
|
||||
json!( { "test": None :: <i32> } )
|
||||
);
|
||||
}
|
||||
|
@ -120,3 +120,11 @@ fn issue3117() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// #3139
|
||||
fn issue3139() {
|
||||
assert_eq!(
|
||||
to_json_value(&None::<i32>).unwrap(),
|
||||
json!({ "test": None::<i32> })
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user