mruby-test/driver.c: change FLOAT_TOLERANCE bigger for inline floats.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-20 17:09:42 +09:00
parent 36632f55f4
commit 3b4c4caddc
+4
View File
@@ -222,7 +222,11 @@ mrb_init_test_driver(mrb_state *mrb, mrb_bool verbose)
#ifndef MRB_NO_FLOAT
#ifdef MRB_USE_FLOAT32
#ifdef MRB_USE_FLOAT_FULL_PRECISION
mrb_define_const(mrb, mrbtest, "FLOAT_TOLERANCE", mrb_float_value(mrb, 1e-5));
#else
mrb_define_const(mrb, mrbtest, "FLOAT_TOLERANCE", mrb_float_value(mrb, 1e-4));
#endif
#else
mrb_define_const(mrb, mrbtest, "FLOAT_TOLERANCE", mrb_float_value(mrb, 1e-10));
#endif