mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
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.
50 lines
747 B
Plaintext
50 lines
747 B
Plaintext
1234.5678: 1.23e+03
|
|
X: 3
|
|
Y: 4
|
|
X + Y: 7
|
|
X * Y: 12
|
|
X - Y: -1
|
|
X / Y: 0.75
|
|
X ^ Y: 81
|
|
X: 41
|
|
Y: -3
|
|
X + Y: 38
|
|
X * Y: -123
|
|
X - Y: 44
|
|
X / Y: -13.7
|
|
X ^ Y: 1.45e-05
|
|
Float max: 1.8e+308
|
|
Float min: 2.23e-308
|
|
Float epsilon: 2.22e-16
|
|
Pi: 3.14
|
|
e: 2.72
|
|
X: 2.7
|
|
ceil(X): 3
|
|
floor(X): 2
|
|
round(X): 3
|
|
truncate(X): 2
|
|
X: -3.6
|
|
ceil(X): -3
|
|
floor(X): -4
|
|
round(X): -4
|
|
truncate(X): -3
|
|
X: 2.2
|
|
sqrt(X): 1.48
|
|
ln(X): 0.788
|
|
log2(X): 1.14
|
|
log10(X): 0.342
|
|
log(2.1, X): 1.06
|
|
exp(X): 9.03
|
|
X: 0.5
|
|
sin(X): 0.479
|
|
cos(X): 0.878
|
|
tan(X): 0.546
|
|
sinh(X): 0.521
|
|
cosh(X): 1.13
|
|
tanh(X): 0.462
|
|
atan2(sin(X), cos(X)): 0.5
|
|
X: 0.6
|
|
asin(X): 0.644
|
|
acos(X): 0.927
|
|
atan(X): 0.54
|