Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integral types #43

Merged
merged 9 commits into from
Nov 23, 2024
Merged

Integral types #43

merged 9 commits into from
Nov 23, 2024

Conversation

mwsis
Copy link
Collaborator

@mwsis mwsis commented Nov 23, 2024

No description provided.

synesissoftware and others added 9 commits November 21, 2024 18:50
Squashed commit of the following:

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (synesissoftware#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (synesissoftware#39)
…++) to allow for custom integral types to be tested
Squashed commit of the following:

commit 97fc966
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 17:00:52 2024 +1100

    Terse macros (synesissoftware#42)

    * ~ ignores

    * ~ all scratch-test entry-point source file names standardised

    * + added terse forms of macros, available by including **xtests/terse-api.h**

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * ~ boilerplate

    * Merged 'dev' into 'terse-macros'

    Squashed commit of the following:

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (synesissoftware#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (synesissoftware#39)

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (synesissoftware#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (synesissoftware#39)
Copy link
Owner

@synesissoftware synesissoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@synesissoftware synesissoftware merged commit e74a0b8 into synesissoftware:dev Nov 23, 2024
synesissoftware added a commit that referenced this pull request Dec 31, 2024
Squashed commit of the following:

commit 39fe8fcc723d954d6f19a4fac1dd5f78ce67788c
Author: Matt Wilson <[email protected]>
Date:   Tue Dec 31 12:55:20 2024 +1100

    boilerplate

commit e4c3bcd
Author: Matt Wilson <[email protected]>
Date:   Tue Dec 31 12:49:43 2024 +1100

    Hint directory support (`temp_file`) (#46)

    * ~ preparatory refactoring

    * `xtests::cpp::util::temp_file` : + now supports `hint_dir` parameter, to allow caller to specify temporary directory

    * ~ VC++ compatibility

    * `xtests::cpp::util::temp_file` : + now supports `hint_dir` parameter on Windows, to allow caller to specify temporary directory

    * ~ tidying

commit 1bf1274
Merge: a7d7a21 dae3603
Author: synesissoftware <[email protected]>
Date:   Tue Dec 31 10:34:24 2024 +1100

    Merge pull request #47 from synesissoftware/tests-ignore-env

    Ensure environment variables cannot disrupt tests

commit dae3603
Author: Matt Wilson <[email protected]>
Date:   Tue Dec 31 10:30:49 2024 +1100

    **test.unit.utility.cmdline** : ~ ensuring that definition of `"TEST_VERBOSITY"` or `"XTESTS_VERBOSITY"` environment variables cannot disrupt tests

commit a7d7a21
Author: Matt Wilson <[email protected]>
Date:   Tue Dec 31 09:03:55 2024 +1100

    STLSoft-1.11 (#45)

    * ~ consistency

    * + added **test.unit.utility.cmdline**

    * made command-line handling more standard, incl recognition of '--' special flag

    * made command-line handling more standard, incl recognition of '--' special flag when handling '--help'

    * ~ consistency

    * + added `xtests_commandLine_parseHelpOrVerbosity()` / `XTESTS_COMMANDLINE_PARSE_HELP_OR_VERBOSITY()`

    * - removed hard dependency on **shwild** in new unit-test

    * ~ standardised example and test program entry-point source files

    * ~ updated requirement on `_STLSOFT_VER` to >= 0x010b015d

    * ~ boilerplate, version, ...

    * ~ boilerplate, version, ...

commit 3bf62cd
Author: Matt Wilson <[email protected]>
Date:   Tue Dec 17 08:03:44 2024 +1100

    Substantial refactoring and minor feature enhancements (#44)

    * ~ preparatory refactoring

    * + added very short test macro names, such as `TEST_INT_EQ()`;
    + added scratch test **test.scratch.all_failure_messages**, which illustrates most/all failure messages

    * + added floating-point test macros `XTESTS_TEST_FLOATINGPOINT_GREATER`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `XTESTS_TEST_FLOATINGPOINT_LESS`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
    + added floating-point test macros `TEST_FLOATINGPOINT_GREATER`, `TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `TEST_FLOATINGPOINT_LESS`, `TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
    + added floating-point test macros `TEST_FP_GT`, `TEST_FP_GE`, `TEST_FP_LT`, `TEST_FP_LE` ;

    * ~ defect fix (for wide character tests)

    * ~ preparatory refactoring for failure messages

    * ~ preparatory work

    * ~ refactoring (`switch` statements)

    * ~ refactoring (`case` clauses)

    * ~ preparatory refactoring

    * ~ -preparatory refactoring

    * ~ tidying

    * ~ preparatory refactoring

    * + added colour for individual elements of failure statements (including expected value, actual value, relation, function)

    * ~ preparatory refactoring

    * + applied colour changes throught all parts (save for defect reporting elements)

    * ~ STLSoft version simplifications

    * **test.scratch.all_failure_messages** : choosing pointer values (for ease of before/after comparison)

    * - removed old non-colour implementations

    * ~ refactoring-to-function `relation_equals_()`

    * ~ refactoring-to-function `relation_contains_()`

    * ~ refactoring-to-function `colorise_()`

    * - removed old colour implementation(s)

    * ~ temporary renaming of field to help with imminent refactoring

    * ~ dealing with Windows' `min()` and `max()` macros

    * + added and applied `XTESTS_CALL_NORETURN()` macro

    * ~ tidying

    * ~ whitespace

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit e74a0b8
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 17:10:48 2024 +1100

    Integral types (#43)

    * ~ simplified and separated (C++) implementation of `bool` tests

    * ~ simplified and separated (C++) implementation of `bool` tests

    * ~ updated **STLSoft** constructs, incl. macros

    * ~ layout

    * - dead code

    * Merged 'msq' into 'int-types'

    Squashed commit of the following:

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (#39)

    * ~ now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested

    * Merged 'dev' into 'int-types'

    Squashed commit of the following:

    commit 97fc966
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 17:00:52 2024 +1100

        Terse macros (#42)

        * ~ ignores

        * ~ all scratch-test entry-point source file names standardised

        * + added terse forms of macros, available by including **xtests/terse-api.h**

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * ~ boilerplate

        * Merged 'dev' into 'terse-macros'

        Squashed commit of the following:

        commit 1083e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 16:40:31 2024 +1100

            ~ commit

        commit cf1e7e3
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 16:37:33 2024 +1100

            Environment variable (for verbosity) (#41)

            * Merged 'env-edits' into 'env'

            Squashed commit of the following:

            commit c536d64742d96df26887394185d625ac029a306c
            Author: Matt Wilson <[email protected]>
            Date:   Sat Nov 23 10:20:56 2024 +1100

                ~ updated **STLSoft** constructs, incl. macros

            commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
            Author: Matt Wilson <[email protected]>
            Date:   Sat Nov 23 10:25:09 2024 +1100

                ~ layout

            * ~ preparatory changes

            * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

        commit 6620ce6
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 16:35:44 2024 +1100

            ~ improved boilerplate (#39)

        ---------

        Co-authored-by: Matt Wilson <[email protected]>

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (#39)

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit 97fc966
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 17:00:52 2024 +1100

    Terse macros (#42)

    * ~ ignores

    * ~ all scratch-test entry-point source file names standardised

    * + added terse forms of macros, available by including **xtests/terse-api.h**

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * ~ boilerplate

    * Merged 'dev' into 'terse-macros'

    Squashed commit of the following:

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (#39)

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)
synesissoftware added a commit that referenced this pull request Jan 30, 2025
* ~ improved boilerplate (#39)

* Environment variable (for verbosity) (#41)

* Merged 'env-edits' into 'env'

Squashed commit of the following:

commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:20:56 2024 +1100

    ~ updated **STLSoft** constructs, incl. macros

commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:25:09 2024 +1100

    ~ layout

* ~ preparatory changes

* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

* ~ commit

* Terse macros (#42)

* ~ ignores

* ~ all scratch-test entry-point source file names standardised

* + added terse forms of macros, available by including **xtests/terse-api.h**

* Merged 'env-edits' into 'env'

Squashed commit of the following:

commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:20:56 2024 +1100

    ~ updated **STLSoft** constructs, incl. macros

commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:25:09 2024 +1100

    ~ layout

* ~ preparatory changes

* ~ boilerplate

* Merged 'dev' into 'terse-macros'

Squashed commit of the following:

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

---------

Co-authored-by: Matt Wilson <[email protected]>

* Integral types (#43)

* ~ simplified and separated (C++) implementation of `bool` tests

* ~ simplified and separated (C++) implementation of `bool` tests

* ~ updated **STLSoft** constructs, incl. macros

* ~ layout

* - dead code

* Merged 'msq' into 'int-types'

Squashed commit of the following:

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

* ~ now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested

* Merged 'dev' into 'int-types'

Squashed commit of the following:

commit 97fc966
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 17:00:52 2024 +1100

    Terse macros (#42)

    * ~ ignores

    * ~ all scratch-test entry-point source file names standardised

    * + added terse forms of macros, available by including **xtests/terse-api.h**

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * ~ boilerplate

    * Merged 'dev' into 'terse-macros'

    Squashed commit of the following:

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (#39)

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

---------

Co-authored-by: Matt Wilson <[email protected]>

* ~ preparatory refactoring

* + added very short test macro names, such as `TEST_INT_EQ()`;
+ added scratch test **test.scratch.all_failure_messages**, which illustrates most/all failure messages

* + added floating-point test macros `XTESTS_TEST_FLOATINGPOINT_GREATER`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `XTESTS_TEST_FLOATINGPOINT_LESS`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FLOATINGPOINT_GREATER`, `TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `TEST_FLOATINGPOINT_LESS`, `TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FP_GT`, `TEST_FP_GE`, `TEST_FP_LT`, `TEST_FP_LE` ;

* ~ defect fix (for wide character tests)

* ~ preparatory refactoring for failure messages

* ~ preparatory work

* ~ refactoring (`switch` statements)

* ~ refactoring (`case` clauses)

* ~ preparatory refactoring

* ~ -preparatory refactoring

* ~ tidying

* ~ preparatory refactoring

* + added colour for individual elements of failure statements (including expected value, actual value, relation, function)

* ~ preparatory refactoring

* + applied colour changes throught all parts (save for defect reporting elements)

* ~ STLSoft version simplifications

* **test.scratch.all_failure_messages** : choosing pointer values (for ease of before/after comparison)

* - removed old non-colour implementations

* ~ refactoring-to-function `relation_equals_()`

* ~ refactoring-to-function `relation_contains_()`

* ~ refactoring-to-function `colorise_()`

* - removed old colour implementation(s)

* ~ temporary renaming of field to help with imminent refactoring

* ~ dealing with Windows' `min()` and `max()` macros

* + added and applied `XTESTS_CALL_NORETURN()` macro

* ~ tidying

* + added check for "old" Windows terminals that may not accept ANSI colour codes

---------

Co-authored-by: Matt Wilson <[email protected]>
synesissoftware added a commit that referenced this pull request Feb 22, 2025
* Windows compatibility (for coloured output) (#49)

* ~ improved boilerplate (#39)

* Environment variable (for verbosity) (#41)

* Merged 'env-edits' into 'env'

Squashed commit of the following:

commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:20:56 2024 +1100

    ~ updated **STLSoft** constructs, incl. macros

commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:25:09 2024 +1100

    ~ layout

* ~ preparatory changes

* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

* ~ commit

* Terse macros (#42)

* ~ ignores

* ~ all scratch-test entry-point source file names standardised

* + added terse forms of macros, available by including **xtests/terse-api.h**

* Merged 'env-edits' into 'env'

Squashed commit of the following:

commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:20:56 2024 +1100

    ~ updated **STLSoft** constructs, incl. macros

commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 10:25:09 2024 +1100

    ~ layout

* ~ preparatory changes

* ~ boilerplate

* Merged 'dev' into 'terse-macros'

Squashed commit of the following:

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

---------

Co-authored-by: Matt Wilson <[email protected]>

* Integral types (#43)

* ~ simplified and separated (C++) implementation of `bool` tests

* ~ simplified and separated (C++) implementation of `bool` tests

* ~ updated **STLSoft** constructs, incl. macros

* ~ layout

* - dead code

* Merged 'msq' into 'int-types'

Squashed commit of the following:

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

* ~ now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested

* Merged 'dev' into 'int-types'

Squashed commit of the following:

commit 97fc966
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 17:00:52 2024 +1100

    Terse macros (#42)

    * ~ ignores

    * ~ all scratch-test entry-point source file names standardised

    * + added terse forms of macros, available by including **xtests/terse-api.h**

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * ~ boilerplate

    * Merged 'dev' into 'terse-macros'

    Squashed commit of the following:

    commit 1083e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:40:31 2024 +1100

        ~ commit

    commit cf1e7e3
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:37:33 2024 +1100

        Environment variable (for verbosity) (#41)

        * Merged 'env-edits' into 'env'

        Squashed commit of the following:

        commit c536d64742d96df26887394185d625ac029a306c
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:20:56 2024 +1100

            ~ updated **STLSoft** constructs, incl. macros

        commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
        Author: Matt Wilson <[email protected]>
        Date:   Sat Nov 23 10:25:09 2024 +1100

            ~ layout

        * ~ preparatory changes

        * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

    commit 6620ce6
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 16:35:44 2024 +1100

        ~ improved boilerplate (#39)

    ---------

    Co-authored-by: Matt Wilson <[email protected]>

commit 1083e94
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:40:31 2024 +1100

    ~ commit

commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:37:33 2024 +1100

    Environment variable (for verbosity) (#41)

    * Merged 'env-edits' into 'env'

    Squashed commit of the following:

    commit c536d64742d96df26887394185d625ac029a306c
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:20:56 2024 +1100

        ~ updated **STLSoft** constructs, incl. macros

    commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
    Author: Matt Wilson <[email protected]>
    Date:   Sat Nov 23 10:25:09 2024 +1100

        ~ layout

    * ~ preparatory changes

    * `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`

commit 6620ce6
Author: Matt Wilson <[email protected]>
Date:   Sat Nov 23 16:35:44 2024 +1100

    ~ improved boilerplate (#39)

---------

Co-authored-by: Matt Wilson <[email protected]>

* ~ preparatory refactoring

* + added very short test macro names, such as `TEST_INT_EQ()`;
+ added scratch test **test.scratch.all_failure_messages**, which illustrates most/all failure messages

* + added floating-point test macros `XTESTS_TEST_FLOATINGPOINT_GREATER`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `XTESTS_TEST_FLOATINGPOINT_LESS`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FLOATINGPOINT_GREATER`, `TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `TEST_FLOATINGPOINT_LESS`, `TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FP_GT`, `TEST_FP_GE`, `TEST_FP_LT`, `TEST_FP_LE` ;

* ~ defect fix (for wide character tests)

* ~ preparatory refactoring for failure messages

* ~ preparatory work

* ~ refactoring (`switch` statements)

* ~ refactoring (`case` clauses)

* ~ preparatory refactoring

* ~ -preparatory refactoring

* ~ tidying

* ~ preparatory refactoring

* + added colour for individual elements of failure statements (including expected value, actual value, relation, function)

* ~ preparatory refactoring

* + applied colour changes throught all parts (save for defect reporting elements)

* ~ STLSoft version simplifications

* **test.scratch.all_failure_messages** : choosing pointer values (for ease of before/after comparison)

* - removed old non-colour implementations

* ~ refactoring-to-function `relation_equals_()`

* ~ refactoring-to-function `relation_contains_()`

* ~ refactoring-to-function `colorise_()`

* - removed old colour implementation(s)

* ~ temporary renaming of field to help with imminent refactoring

* ~ dealing with Windows' `min()` and `max()` macros

* + added and applied `XTESTS_CALL_NORETURN()` macro

* ~ tidying

* + added check for "old" Windows terminals that may not accept ANSI colour codes

---------

Co-authored-by: Matt Wilson <[email protected]>

* ~ boilerplate

* Support for UDTs (#48)

* ~ fixes to CMakeLists.txt

* added support (including coloured output) for (in)equality testing of UDTs

* ~ fixes

---------

Co-authored-by: Matt Wilson <[email protected]>

* ~ fix

* Fix for `temp_file` (UNIX) (#50)

* `temp_file` fix

* ~ version

* `temp_directory` now looks for and deletes sockets, as well as files (#51)

* ~ `temp_directory` fix ; + added component test **test.component.temp_directory**

* `temp_directory` : ~ further fix

---------

Co-authored-by: Matt Wilson <[email protected]>

* ~ release prep

* ~ release prep

---------

Co-authored-by: Matt Wilson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants