medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Add assert cheatcodes

Open tuturu-tech opened this issue 1 week ago • 1 comments

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 correctly
  • TestAssertCheatCodesFail: Verifies failing assertions are detected and return panic code 0x01

TODO:

  • [ ] Debug assertTrue and assertFalse

tuturu-tech avatar Nov 26 '25 15:11 tuturu-tech

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.