1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-03-28 12:29:54 +01:00

Update Message::Move in the enums3 test to take a Point.

This commit is contained in:
Siobhan Jacobson 2020-05-04 18:59:23 -04:00
parent 7c4b1f910c
commit 09e89bbcd3

View File

@ -53,7 +53,7 @@ mod tests {
};
state.process(Message::ChangeColor(255, 0, 255));
state.process(Message::Echo(String::from("hello world")));
state.process(Message::Move{ x: 10, y: 15 });
state.process(Message::Move(Point{ x: 10, y: 15 }));
state.process(Message::Quit);
assert_eq!(state.color, (255, 0, 255));