diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:38:19 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:38:19 +0100 |
| commit | 32cce8fe6a4b35d24d6a63b3226daee2a2753684 (patch) | |
| tree | 6409e8f25209c5719ab17d158f242085b8d1fe9a /test | |
| parent | 7e705a3342bc36f9f02b4e8e0050bc5842a62f9b (diff) | |
| download | zmodn-32cce8fe6a4b35d24d6a63b3226daee2a2753684.tar.gz zmodn-32cce8fe6a4b35d24d6a63b3226daee2a2753684.zip | |
Added power operator
Diffstat (limited to '')
| -rwxr-xr-x | test | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -133,6 +133,14 @@ public: | |||
| 133 | assert_equal(n.toint(), 2); | 133 | assert_equal(n.toint(), 2); |
| 134 | } | 134 | } |
| 135 | }, | 135 | }, |
| 136 | { | ||
| 137 | .name = "2^12 mod 154", | ||
| 138 | .f = []() { | ||
| 139 | Zmod<154> b = 2; | ||
| 140 | auto p = b ^ 12; | ||
| 141 | assert_equal(p, 92); | ||
| 142 | } | ||
| 143 | }, | ||
| 136 | }; | 144 | }; |
| 137 | 145 | ||
| 138 | int main() { | 146 | int main() { |
