1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-23 00:28:46 +02:00

Merge pull request #1565 from pksadiq/fix-enum3-message-modification

fix(enums3): modify message string in test
This commit is contained in:
liv
2023-09-04 14:37:44 +02:00
committed by GitHub

View File

@ -59,7 +59,7 @@ 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);
@ -67,6 +67,6 @@ mod tests {
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!");
}
}