Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix role_playing_game test according to instructions #444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ pub fn revive_a_player_that_is_alive_should_return_none_test() {
}

pub fn reviving_a_low_level_player_resets_its_health_to_100_test() {
Player(name: None, level: 3, health: 0, mana: None)
Player(name: None, level: 3, health: 0, mana: Some(3))
|> role_playing_game.revive
|> should.equal(Some(Player(name: None, level: 3, health: 100, mana: None)))
|> should.equal(
Some(Player(name: None, level: 3, health: 100, mana: Some(3))),
)
}

pub fn reviving_a_high_level_player_resets_both_its_health_and_mana_test() {
Expand Down
Loading