summary refs log tree commit diff
path: root/crypto/test/src
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2022-08-25 12:53:29 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2022-08-25 12:53:29 +1000
commit7e63b75c89ea889ed1c11b2b1381e5f05332f13c (patch)
tree65a3e3fdb27df49b82e1510bca2cc4eab422f837 /crypto/test/src
parentinitial NTRU implementation (diff)
downloadBouncyCastle.NET-ed25519-7e63b75c89ea889ed1c11b2b1381e5f05332f13c.tar.xz
minor refactoring, added sampling
Diffstat (limited to 'crypto/test/src')
-rw-r--r--crypto/test/src/pqc/crypto/test/FalconTest.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/test/src/pqc/crypto/test/FalconTest.cs b/crypto/test/src/pqc/crypto/test/FalconTest.cs

index 0c73dfcfd..bcda32669 100644 --- a/crypto/test/src/pqc/crypto/test/FalconTest.cs +++ b/crypto/test/src/pqc/crypto/test/FalconTest.cs
@@ -11,6 +11,7 @@ using Org.BouncyCastle.Utilities.Test; namespace Org.BouncyCastle.Pqc.Crypto.Tests { + [TestFixture] public class FalconTest { [Test] @@ -24,6 +25,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests FalconParameters.falcon_1024 }; + TestSampler sampler = new TestSampler(); for (int fileIndex = 0; fileIndex < files.Length; fileIndex++) { string name = files[fileIndex]; Console.Write("testing: " + name); @@ -40,7 +42,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests } if (line.Length == 0) { - if (buf.Count > 0) + if (buf.Count > 0 && !sampler.SkipTest(buf["count"])) { string count = buf["count"]; Console.Write("test case: " + count);