1
0
forked from Alepha/Alepha

More progress on the testing front.

This commit is contained in:
2023-10-12 18:57:40 -04:00
parent 7bafa453da
commit a8433d13e3
7 changed files with 58 additions and 2 deletions

21
word_wrap.test/0.cc Normal file
View File

@ -0,0 +1,21 @@
static_assert( __cplusplus > 2020'00 );
#include "../word_wrap.h"
#include <Alepha/Testing/test.h>
#include <Alepha/Testing/TableTest.h>
#include <Alepha/Utility/evaluation.h>
namespace
{
using namespace Alepha::Testing::literals::program_option_literals;
using Alepha::Testing::TableTest;
}
static auto init= Alepha::Utility::enroll <=[]
{
"Does word wrap with no-indent do sensible things?"_test <=TableTest< Alepha::wordWrap >::Cases
{
{ "Three word with break after first?", { "Goodbye cruel world!", 12, 0 }, "Goodbye \ncruel world!" },
};
};

View File

@ -0,0 +1,2 @@
link_libraries( unit-test )
unit_test( 0 )