medusa
medusa copied to clipboard
Add assert cheatcodes
Add assert* cheatcodes: assertTrue, assertFalse, assertEq (6 type variants), assertNotEq (6 type variants), and assertLt/Le/Gt/Ge (8 comparison operators). Tested each, most assertions return Panic(0x01) on failure (assertFalse and assertTrue don't, I wasn't able to figure out why)
Testing:
TestAssertCheatCodesPass: Verifies passing assertions work correctlyTestAssertCheatCodesFail: Verifies failing assertions are detected and return panic code 0x01
TODO:
- [ ] Debug
assertTrueandassertFalse
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. Credits must be used to enable repository wide code reviews.