mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
library/std_util.m:
Make std_util.pow/3 throw an exception if it is called with a negative
integer as its second argument.
tests/hard_coded/Mmakefile:
tests/hard_coded/func_exp.{m,exp}:
Add a test of pow/3.
NEWS:
Announce the above change.
5 lines
151 B
Plaintext
5 lines
151 B
Plaintext
pow(double, -1, 1) = software_error("function `std_util.pow\'/3: N is negative")
|
|
pow(double, 0, 1) = 1
|
|
pow(double, 1, 1) = 2
|
|
pow(double, 10, 1) = 1024
|