fix(octave): correct division test expected value

This commit is contained in:
allaun 2026-06-30 18:32:44 -05:00
parent 9f2b868920
commit 3323a626ab

View file

@ -27,7 +27,7 @@ function test_div()
prog{3} = struct('op', AVM.OP_PRIM, 'arg', int32(AVM.PRIM_DIV_Q16), 'arg2', false);
prog{4} = struct('op', AVM.OP_HALT, 'arg', int32(0), 'arg2', false);
s = AVM.run(AVM.init_state(0), prog, 100);
expected = idivide(int32(3*QS), int32(5*QS), 'floor') * int32(QS);
expected = int32(idivide(int32(3)*int32(QS), int32(5), 'floor'));
if s.stack{1}.i == expected; fprintf(stdout, " ✅ div_q16: 3/5\n");
else; fprintf(stdout, " ❌ div_q16\n"); end
end