1
0
forked from Alepha/Alepha

42 Commits

Author SHA1 Message Date
970cfa3b62 Unify everything to template_for form. 2024-07-05 12:23:26 -04:00
32e6c36570 Rename the template_for header.
C++26 (I hope) is supposed to have this syntax:

```
template for( const auto &element: aggregate )
{
	...;
}
```

Thus, I've adjusted this gadget to have a similar name, to enable
simple mechanical code changes.  From Alepha, you'd use it
thus:

```
template_for( aggregate ) <=[&]( const auto &element )
{
	...;
};
```
2024-07-05 11:59:26 -04:00
b44539cab1 Table tests now print argument information about failed cases.
At least they'll print as much information as they can.
Unstreamable input types will just print typeid information.
2024-06-13 18:04:33 -04:00
26eb1b080e Basic support for exception verification in tests
This probably needs to be expanded upon.  The basic functionality
added is to permit a test expectation clause to be a function which
takes some kind of exception type.  That function can then
perform any arbitrary checks and analyses it needs to confirm that
the exception which was caught passes muster for that test case.
2024-06-12 00:08:14 -04:00
373b07e1c4 Apply the newer namespace rules and layout/formatting. 2024-04-02 23:32:02 -04:00
4dac28a2c3 Better error messages in certain exception test situations. 2023-11-16 07:29:30 -05:00
c6b66aa7b5 Individual TableTest cases can be disabled. 2023-11-13 11:45:56 -05:00
057aa27cb7 Testing improvements. 2023-11-12 00:12:40 -05:00
57511b2588 Type erased much of TableTest.
This will let us adjust the output with fewer rebuilds.
2023-11-11 18:54:26 -05:00
c9f7e9cbc3 This can be the type erased base for Table Test. 2023-11-11 18:54:26 -05:00
df72d745e6 Unified testing output.
This should eliminate the duplicate "PASSED" or "FAILED" lines.

I think I can type-erase some of this sufficiently to make the
output rendering be in its own TU... then tweaks to test output
format will mostly require a relink, not a rebuild.
2023-11-11 18:54:26 -05:00
8576253382 Cleanup some of the table test code. 2023-11-10 04:11:01 -05:00
d1157cabf7 Start the C++23 adoption. 2023-11-07 05:30:50 -05:00
3942d98684 Unify the Universal Handler forms for the Table test. 2023-11-06 22:42:30 -05:00
ceb87f118f Split out the debug printing helpers for tests. 2023-11-06 00:11:31 -05:00
226e072322 Retire the non-universal legacy cases. 2023-11-05 23:58:44 -05:00
17456f9af4 Drop some old, disabled code. 2023-11-05 03:04:04 -05:00
e0e99ead46 Split out the tuple adapter from the test framework.
Part of the larger testing framework simplification.
2023-11-05 00:30:15 -04:00
c74737d01d Tests weren't running. They didn't get registered. 2023-11-05 00:18:35 -04:00
b9dcec564d I think I have everything working with universal testing cases. 2023-10-29 03:13:40 -04:00
a61d6222c7 Minor reformat 2023-10-29 00:22:56 -04:00
19f060b2a6 Move breakpoint stub to the top of the file. 2023-10-28 18:00:13 -04:00
bca067add4 Permit std::nothrow_t for no throwing cases, in addition to std::type_identity< void >. 2023-10-28 11:59:23 -04:00
48549ff465 I have the universal handler working for value-test cases... 2023-10-28 10:57:41 -04:00
2bd71cdfcf Merge branch 'master' of github.com:adamlsd/Alepha 2023-10-26 02:34:35 -04:00
bd3309e7ce The beginnings of UniversalCases.
The rest has to be fleshed out.  Then I can pivot the existing cases
to this, I think.
2023-10-26 01:32:46 -04:00
a62335960e Rename string gen to IOStreams::String. 2023-10-25 20:54:39 -04:00
c2bc8dae2e Stream builder notation for strings.
This should be less boilerplate than repeated `lexical_cast`
or `stringify` calls when building strings.
2023-10-25 04:03:39 -04:00
794e4404a1 Put in some structure to test output.
This helps to visually distinguish between different cases
which executed and when new tests start.
2023-10-24 00:36:04 -04:00
6aa302f791 Table testing for exception cases.
I still have to implement a bit more here, but this is a good start.
2023-10-23 04:10:51 -04:00
795661873e Some output style changes for table test. 2023-10-23 04:08:46 -04:00
1bb0c56224 Update and consolidate the console and colors code.
This introduces a subset of SGR-Name syntax.
2023-10-20 23:48:00 -04:00
0b63658815 Unify the evaluation helpers implementations. 2023-10-20 04:49:07 -04:00
f5840e15ab IWYU for integer types in table test. 2023-10-20 03:32:42 -04:00
664e02681b Improved table test output and fixed bugs in word wrap and its test. 2023-10-13 00:14:25 -04:00
0c1a24053b Modernize the format of TableTest. 2023-10-12 21:22:42 -04:00
a8433d13e3 More progress on the testing front. 2023-10-12 18:57:40 -04:00
fe66d726be Clean up and regularize the prologue of files.
Mark them for C++20, remove the old module-faking hacks, etc.
2023-02-10 08:58:29 -08:00
3c11d6af74 Move the colours stuff out of Testing and into console. 2021-10-25 02:01:07 -04:00
83aa3f9e61 Fix lifetime issues for table testing params. 2021-10-19 22:39:38 -04:00
f7bdba6072 Add console colour support. 2021-09-07 18:45:43 -04:00
741c0dcdcf Table testing created.
Haven't tested `VectorCases` yet.
2021-07-02 01:12:00 -04:00