1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-25 17:36:11 +02:00

Merge pull request #385 from siobhanjacobson/fix-enums3-test

This commit is contained in:
fmoko 2020-05-05 19:50:28 +02:00 committed by GitHub
commit 1b4590b42b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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));