From 8264b5f42c7e34f9ebf3e53e3483f453261c749c Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 27 Nov 2024 08:59:46 +0800 Subject: [PATCH] internal/bigmod: add support for even moduli #280 --- internal/bigmod/nat_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/bigmod/nat_test.go b/internal/bigmod/nat_test.go index 80e6f53..96cb12d 100644 --- a/internal/bigmod/nat_test.go +++ b/internal/bigmod/nat_test.go @@ -559,10 +559,6 @@ func TestNewModulus(t *testing.T) { if err == nil || err.Error() != expected { t.Errorf("NewModulus(0) got %q, want %q", err, expected) } - _, err = NewModulus([]byte{1, 1, 1, 1, 2}) - if err == nil || err.Error() != expected { - t.Errorf("NewModulus(2) got %q, want %q", err, expected) - } } func TestOverflowedBytes(t *testing.T) {