diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:54:02 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:54:02 +0100 |
| commit | 771667c2bb52235d6dacf67eab933207b59e167b (patch) | |
| tree | aa354ddae02f1a393771ba580febf8a33973d315 /test | |
| parent | 32cce8fe6a4b35d24d6a63b3226daee2a2753684 (diff) | |
| download | zmodn-771667c2bb52235d6dacf67eab933207b59e167b.tar.gz zmodn-771667c2bb52235d6dacf67eab933207b59e167b.zip | |
Fix division
Diffstat (limited to 'test')
| -rwxr-xr-x | test | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -141,6 +141,16 @@ public: | |||
| 141 | assert_equal(p, 92); | 141 | assert_equal(p, 92); |
| 142 | } | 142 | } |
| 143 | }, | 143 | }, |
| 144 | { | ||
| 145 | .name = "4 / 2 mod 6", | ||
| 146 | .f = []() { | ||
| 147 | Zmod<6> four = 4; | ||
| 148 | Zmod<6> two = 2; | ||
| 149 | auto d = four / two; | ||
| 150 | assert_equal(d.has_value(), true); | ||
| 151 | assert_equal(d.value(), 2); | ||
| 152 | } | ||
| 153 | }, | ||
| 144 | }; | 154 | }; |
| 145 | 155 | ||
| 146 | int main() { | 156 | int main() { |
