Skip to content

Commit

Permalink
Add tests that validate that the trait is more flexible now
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Cecile committed Jan 24, 2024
1 parent 4fb02ec commit 9f21bd2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/actionlike_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ enum NamedFieldVariantsAction {
Run { x: usize, y: usize },
Jump,
}

#[derive(Actionlike, Debug, Hash, PartialEq, Eq, Clone, Copy, Reflect)]
struct StructAction {
x: usize,
y: usize,
}

#[derive(Actionlike, Debug, Hash, PartialEq, Eq, Clone, Copy, Reflect)]
struct TupleAction(usize, usize);

0 comments on commit 9f21bd2

Please sign in to comment.