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