Add tests
This commit is contained in:
parent
e86557bf21
commit
b71c3d1af9
28
src/lib.rs
28
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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user