[fine] Many test improvements, error improvements
- Check for more error conditions - Move to more definitive error assertions - Simpler error messages in some cases - Test more conditions more thoroughly, revisit old tests
This commit is contained in:
parent
d0b74db715
commit
5f0a0b3268
20 changed files with 186 additions and 118 deletions
|
|
@ -13,7 +13,8 @@ pub enum VMErrorCode {
|
|||
#[error("internal error: stack type mismatch: {0:?} is not {1:?}")]
|
||||
StackTypeMismatch(StackValue, Type),
|
||||
|
||||
// TODO: This one is *not* like the others!
|
||||
// TODO: This one is *not* like the others! Distinguish between internal
|
||||
// errors and user errors?
|
||||
#[error("divide by zero")]
|
||||
DivideByZero,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue