From cb393311172a5a753038ab77886007e6c5b579bf Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 8 Oct 2022 15:15:29 +0700 Subject: Refactor TestSampler --- crypto/test/src/pqc/crypto/test/TestSampler.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crypto/test/src/pqc/crypto/test/TestSampler.cs b/crypto/test/src/pqc/crypto/test/TestSampler.cs index be61d920f..f989e8c77 100644 --- a/crypto/test/src/pqc/crypto/test/TestSampler.cs +++ b/crypto/test/src/pqc/crypto/test/TestSampler.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Org.BouncyCastle.Pqc.Crypto.Tests { @@ -19,8 +15,11 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests internal bool SkipTest(string count) { + if (isFull) + return false; + int c = int.Parse(count); - return !isFull && c != 0 && ((c + offSet) % 9 != 0); + return c != 0 && ((c + offSet) % 9 != 0); } } } -- cgit 1.4.1