forth: Be more direct w/ division by zero
No need to obscure it by doing `2 2 -`. The `0` will end up on the stack
anyway, so might as well just put it in the input to parse.
@@ -93,9 +93,9 @@ fn division_error() {
#[test]
#[ignore]
-fn division_by_zero() {
+fn errors_if_dividing_by_zero() {
let mut f = Forth::new();
- assert_eq!(Err(Error::DivisionByZero), f.eval("4 2 2 - /"));
+ assert_eq!(Err(Error::DivisionByZero), f.eval("4 0 /"));
}
#[test]
