fix(enums3): Update Message::ChangeColor to take a tuple. (#457)

This commit is contained in:
DEWA Kazuyuki/出羽和之 2020-07-08 18:56:43 +09:00 committed by GitHub
parent 816b1f5e85
commit 4b6540c71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ mod tests {
position: Point{ x: 0, y: 0 }, position: Point{ x: 0, y: 0 },
color: (0, 0, 0) color: (0, 0, 0)
}; };
state.process(Message::ChangeColor(255, 0, 255)); 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::Move(Point{ x: 10, y: 15 }));
state.process(Message::Quit); state.process(Message::Quit);