aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-12-21 17:38:19 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-12-21 17:38:19 +0100
commit32cce8fe6a4b35d24d6a63b3226daee2a2753684 (patch)
tree6409e8f25209c5719ab17d158f242085b8d1fe9a /test
parent7e705a3342bc36f9f02b4e8e0050bc5842a62f9b (diff)
downloadzmodn-32cce8fe6a4b35d24d6a63b3226daee2a2753684.tar.gz
zmodn-32cce8fe6a4b35d24d6a63b3226daee2a2753684.zip
Added power operator
Diffstat (limited to 'test')
-rwxr-xr-xtest8
1 files changed, 8 insertions, 0 deletions
diff --git a/test b/test
index b36c238..4b426c2 100755
--- a/test
+++ b/test
@@ -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
138int main() { 146int main() {