WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit de489fa8 authored by John Zhang's avatar John Zhang
Browse files

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