mirror of
https://github.com/archtechx/enums.git
synced 2025-12-13 16:54:03 +00:00
Code review changes
Altered `::values()` to act like `::names()` for backed enums, code style fixes, general cleanups
This commit is contained in:
parent
c2f0e7faf7
commit
dea16e414c
5 changed files with 22 additions and 13 deletions
|
|
@ -4,6 +4,6 @@ it('can return an array of case values from a backed enum')
|
|||
->expect(Status::values())
|
||||
->toBe([0, 1]);
|
||||
|
||||
it('can returns an empty array from a pure enum')
|
||||
it('can return an array of case names from a pure enum')
|
||||
->expect(Role::values())
|
||||
->toBe([]);
|
||||
->toBe(['ADMIN', 'GUEST']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue