Fix the final champ select review findings (#13)
This commit was merged in pull request #51.
This commit is contained in:
1 parent
cf15eeeb8f
commit
304d958c72
12 files changed
+612
-375
No files matched your search
+1
-18
@@ -1,6 +1,6 @@
|
||||
//! French display helpers shared by the page and the table.
|
||||
|
||||
use arena_tracker_core::{Account, ChampionState, SyncProgress};
|
||||
use arena_tracker_core::{ChampionState, SyncProgress};
|
||||
|
||||
/// Fixed decimals with a decimal comma: `1,96`.
|
||||
pub fn decimal(value: f64, digits: usize) -> String {
|
||||
@@ -29,10 +29,6 @@ pub const CLIENT_ABSENT: &str =
|
||||
"Client League of Legends non détecté : affichage des données enregistrées.";
|
||||
const INTERNAL_ERROR: &str = "Mise à jour impossible : erreur interne.";
|
||||
|
||||
pub fn riot_id(account: &Account) -> String {
|
||||
arena_tracker_core::riot_id(&account.game_name, &account.tag_line)
|
||||
}
|
||||
|
||||
/// The discreet line under the Challenge tile.
|
||||
pub fn official_note(official: u32) -> String {
|
||||
format!("Progression officielle : {official}")
|
||||
@@ -88,19 +84,6 @@ mod tests {
|
||||
assert_eq!(state_label(None), "");
|
||||
}
|
||||
|
||||
fn account(name: &str, tag: &str) -> Account {
|
||||
Account {
|
||||
puuid: "p".into(),
|
||||
game_name: name.into(),
|
||||
tag_line: tag.into(),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn riot_ids_join_name_and_tag() {
|
||||
assert_eq!(riot_id(&account("Joueur", "EUW")), "Joueur#EUW");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn official_progress_texts() {
|
||||
assert_eq!(official_note(52), "Progression officielle : 52");
|
||||
|
||||
Reference in new issue
Block a user