diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:22:09 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-21 17:22:09 +0100 |
| commit | 7e705a3342bc36f9f02b4e8e0050bc5842a62f9b (patch) | |
| tree | e496ef743d63168bc1f7a5d57167a0229889b396 /test | |
| parent | b0d8a2f5f5718ba3fea628cad7bcbbc76c6a140c (diff) | |
| download | zmodn-7e705a3342bc36f9f02b4e8e0050bc5842a62f9b.tar.gz zmodn-7e705a3342bc36f9f02b4e8e0050bc5842a62f9b.zip | |
Make N's type generic for possible use with bigint
Diffstat (limited to '')
| -rwxr-xr-x | test | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -34,7 +34,7 @@ public: | |||
| 34 | .name = "Constructor 2 mod 3", | 34 | .name = "Constructor 2 mod 3", |
| 35 | .f = []() { | 35 | .f = []() { |
| 36 | Zmod<3> two = Zmod<3>(2); | 36 | Zmod<3> two = Zmod<3>(2); |
| 37 | assert_equal(two.toint64(), INT64_C(2)); | 37 | assert_equal(two.toint(), INT64_C(2)); |
| 38 | } | 38 | } |
| 39 | }, | 39 | }, |
| 40 | { | 40 | { |
| @@ -121,7 +121,7 @@ public: | |||
| 121 | Zmod<10> n = 8; | 121 | Zmod<10> n = 8; |
| 122 | Zmod<10> m = 9; | 122 | Zmod<10> m = 9; |
| 123 | auto prod = m * n; | 123 | auto prod = m * n; |
| 124 | assert_equal(prod.toint64(), 2); | 124 | assert_equal(prod.toint(), 2); |
| 125 | } | 125 | } |
| 126 | }, | 126 | }, |
| 127 | { | 127 | { |
| @@ -130,7 +130,7 @@ public: | |||
| 130 | Zmod<10> n = 8; | 130 | Zmod<10> n = 8; |
| 131 | Zmod<10> m = 9; | 131 | Zmod<10> m = 9; |
| 132 | n *= m; | 132 | n *= m; |
| 133 | assert_equal(n.toint64(), 2); | 133 | assert_equal(n.toint(), 2); |
| 134 | } | 134 | } |
| 135 | }, | 135 | }, |
| 136 | }; | 136 | }; |
