From 85f156cab8173a5777f07ae895f3f322032198ad Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sun, 26 Jan 2020 14:42:02 -0800 Subject: [PATCH] adding lor_ranked_v1 get_leaderboards test --- test.bash | 2 ++ tests/tests_na.rs | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 test.bash diff --git a/test.bash b/test.bash new file mode 100644 index 0000000..e618e4c --- /dev/null +++ b/test.bash @@ -0,0 +1,2 @@ +#!/bin/bash +RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 cargo test --features nightly diff --git a/tests/tests_na.rs b/tests/tests_na.rs index 879909a..6d952d2 100644 --- a/tests/tests_na.rs +++ b/tests/tests_na.rs @@ -73,5 +73,11 @@ async_tests!{ rassert!(!m.participants.is_empty(), "Match should have participants."); Ok(()) }, + // LOR + lor_ranked_get_leaderboards: async { + let future = RIOT_API.lor_ranked_v1().get_leaderboards(Region::AMERICAS); + let _leaderboard = future.await.map_err(|e| e.to_string())?; + Ok(()) + }, } }