Riven/tests/tests_jp.rs

23 lines
577 B
Rust
Raw Normal View History

2019-10-20 07:54:01 +00:00
#![feature(custom_test_frameworks)]
#![test_runner(my_runner)]
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::*;
use riven::consts::*;
2019-10-20 07:54:01 +00:00
async_tests!{
my_runner {
// 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(())
},
}
}