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:
parent
1044015465
commit
6bfcd820b4
42 changed files with 129 additions and 62 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue