diff options
| author | troido <troido@protonmail.com> | 2020-03-05 12:50:25 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-05 12:50:25 +0100 |
| commit | 170741fe959d30ee43ce689fd5fbae725cc1dae4 (patch) | |
| tree | de337876fb9afc3ca20e5a99ef61689813f51ebe /src/parameter.rs | |
| parent | ea99b86b89659624133a63f03600f0b57592a5f4 (diff) | |
equipent now kinda works
Diffstat (limited to 'src/parameter.rs')
| -rw-r--r-- | src/parameter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parameter.rs b/src/parameter.rs index d761331..829c5cf 100644 --- a/src/parameter.rs +++ b/src/parameter.rs @@ -141,12 +141,12 @@ mod tests { assert_eq!(gfj!(-3.0), Parameter::Float(-3.0)); assert_eq!(gfj!(0.0), Parameter::Float(0.0)); assert_eq!(gfj!(-0.0), Parameter::Float(0.0)); + assert_eq!(gfj!(true), Parameter::Bool(true)); } #[test] fn guess_json_none() { assert!(Parameter::guess_from_json(&json!([2, 5])).is_none()); - assert!(Parameter::guess_from_json(&json!(true)).is_none()); assert!(Parameter::guess_from_json(&json!({"hello": "world"})).is_none()); } } |
