Update tests, release 1.11.2

This commit is contained in:
Mingwei Samuel 2021-04-02 00:14:04 -07:00
parent c460516cfe
commit 7bbe5fc3aa
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "riven"
version = "1.11.1"
version = "1.11.2"
authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"]
repository = "https://github.com/MingweiSamuel/Riven"
description = "Riot Games API Library"

View file

@ -29,7 +29,13 @@ async_tests!{
for (i, p) in leaderboard.players.iter().take(10).enumerate() {
rassert_eq!(i + 1, p.leaderboard_rank as usize);
println!("{:>2}: {:>4} {:<22} ({} wins)", p.leaderboard_rank, p.ranked_rating, format!("{}#{}", p.game_name, p.tag_line), p.number_of_wins);
println!("{:>2}: {:>4} {:<22} ({} wins)",
p.leaderboard_rank,
p.ranked_rating,
format!("{}#{}",
p.game_name.as_deref().unwrap_or("<NONE>"),
p.tag_line.as_deref().unwrap_or("<NONE>")),
p.number_of_wins);
}
Ok(())