blob: 3718866becff20463cf803966b0dca10410e9411 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Test math functions.
// Ref: false
---
// Test `min` and `max` functions.
#test(min(2, -4), -4)
#test(min(3.5, 1e2, -0.1, 3), -0.1)
#test(max(-3, 11), 11)
#test(min("hi"), "hi")
---
// Error: 5-7 missing argument: value
#min()
---
// Error: 10-19 cannot compare integer with string
#test(min(1, "hi"), error)
|