diff options
| author | Teddy Wing | 2016-04-22 09:35:19 -0400 |
|---|---|---|
| committer | Teddy Wing | 2016-04-22 09:35:19 -0400 |
| commit | 4eff98a64efd573a2a77a5e8f6302860085a289c (patch) | |
| tree | 282836024e24e4c3b242fa0b1e20a912d3b217a4 | |
| parent | 01c3824b59289d8a70ae962de310e5f79c7a92ec (diff) | |
| download | mutt-alias-auto-add-4eff98a64efd573a2a77a5e8f6302860085a289c.tar.bz2 | |
tests: Make constant name uppercase
The test compiler complained that I should make my constant uppercase.
Do this to eliminate our compiler warnings.
| -rw-r--r-- | src/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests.rs b/src/tests.rs index 2a6e264..223c6ae 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -93,11 +93,11 @@ fn find_alias_in_file_finds_a_match() { } -const update_alias_id_alias_identifier: &'static str = "hooves-derpy"; +const UPDATE_ALIAS_ID_ALIAS_IDENTIFIER: &'static str = "hooves-derpy"; fn update_alias_id_sample_alias() -> Alias { Alias { - alias: update_alias_id_alias_identifier.to_owned(), + alias: UPDATE_ALIAS_ID_ALIAS_IDENTIFIER.to_owned(), name: "Derpy Hooves".to_owned(), email: "derpyhooves@postmaster.pv".to_owned() } @@ -108,7 +108,7 @@ fn update_alias_id_does_nothing_given_an_empty_vector() { let mut alias = update_alias_id_sample_alias(); alias.update_alias_id(vec![]); - assert_eq!(update_alias_id_alias_identifier, &alias.alias); + assert_eq!(UPDATE_ALIAS_ID_ALIAS_IDENTIFIER, &alias.alias); } #[test] |
