diff options
| author | troido <troido@protonmail.com> | 2020-09-28 14:29:53 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-28 14:29:53 +0200 |
| commit | eb9853dec24045adb7447e1c8ac186e52204b690 (patch) | |
| tree | 7fb944311d64ca5a8ff41748fbd5209a2eaf9806 /src/template.rs | |
| parent | 25abc71200803f7238c56c93b8b89160ff6c1086 (diff) | |
removed parametertype
Diffstat (limited to 'src/template.rs')
| -rw-r--r-- | src/template.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template.rs b/src/template.rs index 530fbc9..8282a79 100644 --- a/src/template.rs +++ b/src/template.rs @@ -125,7 +125,7 @@ mod tests { #[test] fn template_with_kwarg(){ assert_eq!( - Template::deserialize(json!({"type": "wall", "kwargs": {"health": 50}})).unwrap(), + Template::deserialize(json!({":template": "wall", "health": 50})).unwrap(), Template::new("wall", hashmap!{"health".to_string() => Parameter::Int(50)}) ); } |
