Unverified Commit c064836d authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Add `isOneOf` method to `ChiselEnum` (backport #1966) (#2022)

* Add `isOneOf` method to `ChiselEnum` (#1966)

* Add @ekiwi's code as a starting point

* Add test for ChiselEnum isOneOf method

* Make isOneOfTester naming consistent with other testers

* Add scaladoc comments for isOneOf

* Add isOneOf tests that use the method that takes variable number of args

* Add guide level documentation example for isOneOf

(cherry picked from commit bb520b85

)

* Turn on autoclonetype2 for mdocs

Co-authored-by: default avatarVerneri Hirvonen <11316555+chiplet@users.noreply.github.com>
Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 0b60a658
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment