Skip to content

Commit

Permalink
Merge branch 'tests/refactor'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ablesius committed Oct 21, 2024
2 parents ce5f034 + 60b9220 commit c835ce6
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,46 +220,4 @@ mod tests {

assert_eq!(test_char, expected);
}

#[test]
fn char_name() {
let test_char = Character::new(
String::from("_"),
String::from("Test Character"),
String::from("_"),
None,
None,
);

let expected = String::from("Test Character");
assert_eq!(test_char.character_name, expected);
}

#[test]
fn player_name() {
let test_char = Character::new(
String::from("Test Player"),
String::from("_"),
String::from("_"),
None,
None,
);

let expected = String::from("Test Player");
assert_eq!(test_char.player_name, expected);
}

#[test]
fn chronicle() {
let test_char = Character::new(
String::from("_"),
String::from("_"),
String::from("Test Chronicle"),
None,
None,
);

let expected = String::from("Test Chronicle");
assert_eq!(test_char.chronicle, expected);
}
}

0 comments on commit c835ce6

Please sign in to comment.