1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Unit tests: Added an optional argument to the UnitTest constructor to specify a category and methods to get and run unit tests in a specified category. Updated the built-in JUCE unit tests and Demo project to use categories.

This commit is contained in:
ed 2017-07-20 17:24:05 +01:00
parent 1044015465
commit 6bfcd820b4
42 changed files with 129 additions and 62 deletions

View file

@ -307,7 +307,7 @@ bool MD5::operator!= (const MD5& other) const noexcept { return ! operator== (
class MD5Tests : public UnitTest
{
public:
MD5Tests() : UnitTest ("MD5") {}
MD5Tests() : UnitTest ("MD5", "Cryptography") {}
void test (const char* input, const char* expected)
{

View file

@ -240,7 +240,7 @@ bool SHA256::operator!= (const SHA256& other) const noexcept { return ! operato
class SHA256Tests : public UnitTest
{
public:
SHA256Tests() : UnitTest ("SHA-256") {}
SHA256Tests() : UnitTest ("SHA-256", "Cryptography") {}
void test (const char* input, const char* expected)
{

View file

@ -626,7 +626,7 @@ bool Whirlpool::operator!= (const Whirlpool& other) const noexcept { return ! o
class WhirlpoolTests : public UnitTest
{
public:
WhirlpoolTests() : UnitTest ("Whirlpool") {}
WhirlpoolTests() : UnitTest ("Whirlpool", "Cryptography") {}
void test (const char* input, const char* expected)
{