diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 18:13:27 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 18:13:27 +0100 |
| commit | 8ca27427af98bd3a82e8c5f4a199513295747930 (patch) | |
| tree | 6409e8f25209c5719ab17d158f242085b8d1fe9a /test | |
| parent | 771667c2bb52235d6dacf67eab933207b59e167b (diff) | |
| download | zmodn-8ca27427af98bd3a82e8c5f4a199513295747930.tar.gz zmodn-8ca27427af98bd3a82e8c5f4a199513295747930.zip | |
Revert "Fix division"
Actually you cannot do division like that, the result is not unique.
This reverts commit 771667c2bb52235d6dacf67eab933207b59e167b.
Diffstat (limited to '')
| -rwxr-xr-x | test | 10 |
1 files changed, 0 insertions, 10 deletions
| @@ -141,16 +141,6 @@ 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 | }, | ||
| 154 | }; | 144 | }; |
| 155 | 145 | ||
| 156 | int main() { | 146 | int main() { |
