Commit de489fa8 authored by John Zhang's avatar John Zhang

fix mistake in test code

parent a65e9bd9
......@@ -37,7 +37,7 @@ int main(int argc, char** argv) {
id_368 = bldr_29->gen_sym(bldr_29, "@test_fnc.v1.blk0");
id_369 = bldr_29->gen_sym(bldr_29, "@test_fnc.v1.blk0.res");
id_370 = bldr_29->gen_sym(bldr_29, NULL);
bldr_29->new_binop(bldr_29, id_370, id_369, MU_BINOP_FMUL, id_362, id_363, id_364, MU_NO_ID);
bldr_29->new_binop(bldr_29, id_370, id_369, MU_BINOP_FDIV, id_362, id_363, id_364, MU_NO_ID);
id_371 = bldr_29->gen_sym(bldr_29, NULL);
bldr_29->new_ret(bldr_29, id_371, (MuVarNode [1]){id_369}, 1);
bldr_29->new_bb(bldr_29, id_368, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_370, id_371}, 2);
......
......@@ -23,7 +23,7 @@ def test_double_mul():
def test_double_div():
fnp, _ = fncptr_from_c_script("test_double_div.c", "test_fnc", restype=ctypes.c_double)
assert fnp() == within_err(fnp, 1.1557282546316052)
assert fnp() == within_err(fnp(), 1.1557282546316052)
def test_double_ordered_eq():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment