Skip to content

Commit

Permalink
Merge pull request #1565 from pksadiq/fix-enum3-message-modification
Browse files Browse the repository at this point in the history
fix(enums3): modify message string in test
  • Loading branch information
shadows-withal committed Sep 4, 2023
2 parents d03f624 + c5231f0 commit 992e516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/enums/enums3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ mod tests {
message: "hello world".to_string(),
};
state.process(Message::ChangeColor(255, 0, 255));
state.process(Message::Echo(String::from("hello world")));
state.process(Message::Echo(String::from("Hello world!")));
state.process(Message::Move(Point { x: 10, y: 15 }));
state.process(Message::Quit);

assert_eq!(state.color, (255, 0, 255));
assert_eq!(state.position.x, 10);
assert_eq!(state.position.y, 15);
assert_eq!(state.quit, true);
assert_eq!(state.message, "hello world");
assert_eq!(state.message, "Hello world!");
}
}

0 comments on commit 992e516

Please sign in to comment.