From b71c3d1af9ff831f6698cd5dfca5f472c0e8655b Mon Sep 17 00:00:00 2001 From: Sakuhl <2012collector@gmail.com> Date: Tue, 27 Feb 2018 11:36:39 +0100 Subject: [PATCH] Add tests --- src/lib.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 7075d80..6ac2291 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -215,4 +215,32 @@ pub struct PlayerRankings { pub struct PlayerGuildInfo { pub name: String, pub rank: String +} + +#[cfg(test)] +mod tests { + #[test] + fn player() { + ::player("dukioooo").unwrap(); + } + + #[test] + fn guild() { + ::guild("HackForums").unwrap(); + } + + #[test] + fn guild_leaderboard() { + ::guild_leaderboard().unwrap(); + } + + #[test] + fn guild_list() { + ::guild_list().unwrap(); + } + + #[test] + fn guild_prefix() { + ::guild_by_prefix("Two").unwrap(); + } } \ No newline at end of file