forked from microsoft/regorus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.yaml
More file actions
73 lines (65 loc) · 1.27 KB
/
Copy pathmod.yaml
File metadata and controls
73 lines (65 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: mod
data: {}
modules:
- |
package test
x = 10%3
# Undefined
y { false }
b = y % 1
c = 1 % y
query: data.test
want_result:
x : 1
- note: non-numeric
data: {}
modules:
- |
package test
x = "1" % 9
query: data.test.x
error: "`mod` expects numeric argument."
- note: undefined
data: {}
modules:
- |
package test
a { false }
x = a % 10
query: data.test
want_result: {}
- note: by-zero
data: {}
modules:
- |
package test
x = 1%0
query: data.test
error: modulo by zero
- note: float numerator
data: {}
modules:
- |
package test
x = 1.1 % 1
query: data.test
error: modulo on floating-point number
- note: float denom
data: {}
modules:
- |
package test
x = 1 % 1.1
query: data.test
error: modulo on floating-point number
- note: integral float too large to convert
data: {}
modules:
- |
package test
x = 100000000000000000e-1 % 2
query: data.test
error: modulo on floating-point number