forked from Alepha/Alepha
More progress on the testing front.
This commit is contained in:
21
word_wrap.test/0.cc
Normal file
21
word_wrap.test/0.cc
Normal 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!" },
|
||||
};
|
||||
};
|
2
word_wrap.test/CMakeLists.txt
Normal file
2
word_wrap.test/CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
link_libraries( unit-test )
|
||||
unit_test( 0 )
|
Reference in New Issue
Block a user