Commit Graph

4 Commits

Author SHA1 Message Date
Zoltan Somogyi
26cfe7bc19 Fix general/string_to_float for C# and Java.
Add an expected out file which expects the behavior on these backends,
which prints -0 as 0.

Update the programming style of the test source code.
2019-06-24 17:31:47 +02:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
Fergus Henderson
fa7c5b004d Add some additional tests of string_to_float.
Estimated hours taken: 0.1
Branches: main

tests/general/string_to_float.m:
tests/general/string_to_float.exp:
	Add some additional tests of string_to_float.
2002-10-23 13:54:41 +00:00
Ralph Becket
5c79e4e823 Fixed a bug in string__to_float/2 which did not fail when it
Estimated hours taken: 1
Branches: main

library/string.m:
	Fixed a bug in string__to_float/2 which did not fail when it
	should have (i.e. it now also fails if the string argument
	has preceding whitespace or any trailing characters.)

tests/general/string_to_float.m:
tests/general/string_to_float.exp:
tests/general/Mmakefile:
	Added test cases.
2002-02-12 01:39:58 +00:00