From 8d4d4553b7776bc67169190b90798c321637ad4b Mon Sep 17 00:00:00 2001 From: Smitty Date: Thu, 27 May 2021 20:11:54 -0400 Subject: [PATCH] simplify ID tests --- src/ids.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ids.rs b/src/ids.rs index 61c5a36..90992f0 100755 --- a/src/ids.rs +++ b/src/ids.rs @@ -377,21 +377,16 @@ pub mod test { #[test] fn json_url() { - let entity = Qid(42); assert_eq!( - entity.json_url(), + Qid(42).json_url(), "https://www.wikidata.org/wiki/Special:EntityData/Q42.json" ); - - let prop = Pid(31); assert_eq!( prop.json_url(), "https://www.wikidata.org/wiki/Special:EntityData/P31.json" ); - - let lexeme = Lid(1); assert_eq!( - lexeme.json_url(), + Lid(1).json_url(), "https://www.wikidata.org/wiki/Special:EntityData/L1.json" ) }