Commit b902065
committed
Fix test_constant_wnaf for -1 and add a test for it.
Before, test_constant_wnaf used scalar_cadd_bit to correct for the skew. But
this function does not correctly deal with overflows which is why num = -1
couldn't be tested. This commit also adds a test for 0.1 parent 2361b37 commit b902065
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3190 | 3190 | | |
3191 | 3191 | | |
3192 | 3192 | | |
| 3193 | + | |
3193 | 3194 | | |
3194 | 3195 | | |
3195 | 3196 | | |
| |||
3220 | 3221 | | |
3221 | 3222 | | |
3222 | 3223 | | |
3223 | | - | |
| 3224 | + | |
| 3225 | + | |
3224 | 3226 | | |
3225 | 3227 | | |
3226 | 3228 | | |
| |||
3332 | 3334 | | |
3333 | 3335 | | |
3334 | 3336 | | |
| 3337 | + | |
3335 | 3338 | | |
3336 | 3339 | | |
3337 | 3340 | | |
3338 | 3341 | | |
3339 | 3342 | | |
3340 | 3343 | | |
3341 | | - | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
3342 | 3350 | | |
3343 | 3351 | | |
3344 | 3352 | | |
| |||
0 commit comments