Add tests

This commit is contained in:
Sakuhl 2018-02-27 11:36:39 +01:00
parent e86557bf21
commit b71c3d1af9

View File

@ -215,4 +215,32 @@ pub struct PlayerRankings {
pub struct PlayerGuildInfo { pub struct PlayerGuildInfo {
pub name: String, pub name: String,
pub rank: 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();
}
} }