Commit Graph

4 Commits

Author SHA1 Message Date
Julien Fischer
84b3c5591a Update a test to cover 64-bit integers.
tests/hard_coded/write.m:
tests/hard_coded/write.exp*:
    As above.
2018-02-21 00:06:27 +11:00
Julien Fischer
d146f53864 Extend hard_coded/write to cover fixed size integers.
tests/hard_coded/write.m:
tests/hard_coded/write.exp*:
    As above.

    Also, update the expected outputs for the non-C grades for the chnage in
    commit 253378f.
2017-09-15 09:56:23 -04:00
Peter Wang
0759ad01fb Minor fixes.
Branches: main

Minor fixes.

library/io.m:
	Add `may_not_duplicate' to some Erlang foreign_procs.

tests/general/test_string_to_int_overflow.exp:
tests/general/test_string_to_int_overflow.exp2:
tests/general/test_string_to_int_overflow.exp3:
tests/general/test_string_to_int_overflow.m:
	Make this test case work with arbitrary-precision integers, namely with
	the Erlang backend.

tests/hard_coded/trace_goal_4.m:
	Fix a format specifier in Erlang foreign_proc.

tests/hard_coded/expand.exp2:
tests/hard_coded/write.exp2:
tests/hard_coded/write_reg1.exp2:
	Delete leading zeros in exponents, not produced in any current grade.

tests/hard_coded/write.exp3:
	Add expected output for csharp grade.
2011-03-27 23:07:28 +00:00
Peter Ross
f1784ab668 Adapt the tests in the hard_coded directory so that the version of the
Estimated hours taken: 8

Adapt the tests in the hard_coded directory so that the version of the
Mercury compiler built with MSVC passes them in the hlc.gc grade.

tests/hard_coded/deep_copy.exp2:
tests/hard_coded/expand.exp2:
tests/hard_coded/float_reg.exp2:
tests/hard_coded/string_loop.exp2:
tests/hard_coded/write.exp2:
tests/hard_coded/write_reg1.exp2:
    The MSVC runtime prints out floating points using three digits for
    the exponent instead of two for most other runtimes.

tests/hard_coded/remove_file.m:
    s/io__tmp_name/io__make_tmp/ as tmp_name is obsolete.

tests/hard_coded/Mmakefile:
    Remove test_bitset and add bitset.

tests/hard_coded/bitset.exp:
tests/hard_coded/bitset.m:
tests/hard_coded/bitset_tester.m:
tests/hard_coded/test_bitset.exp:
tests/hard_coded/test_bitset.m:
    Move this test into one test case because mmake falls over with
    unable to make `std_util.m^M', plus there is no reason to have this
    case spread over two files.

tests/hard_coded/exceptions/test_exceptions_func.m:
    Remove the uneeded import of std_util, this avoids the
    `std_util.m^M' problem mentioned in the previous test case.
2001-02-13 15:57:27 +00:00