2019-11-07 20:45:13 +00:00
|
|
|
#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))]
|
|
|
|
#![cfg_attr(feature = "nightly", test_runner(my_runner))]
|
2019-10-20 07:54:01 +00:00
|
|
|
|
|
|
|
mod async_tests;
|
2019-10-31 05:52:00 +00:00
|
|
|
mod testutils;
|
|
|
|
use testutils::*;
|
2019-10-20 07:54:01 +00:00
|
|
|
|
|
|
|
use colored::*;
|
|
|
|
|
2019-10-30 20:24:07 +00:00
|
|
|
use riven::consts::*;
|
|
|
|
|
2019-10-20 07:54:01 +00:00
|
|
|
async_tests!{
|
|
|
|
my_runner {
|
2019-10-30 20:24:07 +00:00
|
|
|
// Summoner tests.
|
|
|
|
summoner_get_kanjikana: async {
|
|
|
|
let p = RIOT_API.summoner_v4().get_by_summoner_name(Region::JP, "私の 頭が かたい");
|
|
|
|
let s = p.await.map_err(|e| e.to_string())?.ok_or("Failed to get myheadhard".to_owned())?;
|
|
|
|
rassert_eq!("私の頭がかたい", s.name);
|
2019-10-20 07:54:01 +00:00
|
|
|
Ok(())
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|