Files
wxWidgets/tests
Lauri Nurmi 504c0b16c3 Fix ParseDateTime() to also accept time + date, in that order
The intent of the implementation clearly is to allow parsing time first,
date second. But this failed, because a time such as "14:30:15" would
successfully parse as a date (as 14th of current month, current year).

Consequently an attempt is made to parse the actual date as time, which
fails, and therefore the whole ParseDateTime() fails.

Adding a failing test case for ensuring times cannot be parsed as dates
does not cause a failure, because partially yet successfully parsed inputs
get silently ignored (in both ParseDate and ParseDateTime tests). Fixing
both of these, too.

Closes #22203.
2022-03-18 00:01:18 +01:00
..
2022-03-17 08:10:58 +07:00
2021-11-20 22:06:28 +01:00
2021-01-15 14:55:06 +01:00
2015-03-19 21:46:05 +01:00
2022-01-14 22:51:24 +01:00
2021-11-12 14:21:41 +01:00
2021-12-10 17:26:49 +01:00
2021-08-26 15:49:57 +02:00

Tests

This directory contains tests for the library and is mostly useful for the library developers. See the samples subdirectory for the examples that are more useful to the application developers using the library.

If you do work on the library itself and would like to modify an existing or add a new test, please see docs/contributing/how-to-write-unit-tests.md for more information.

This file also contains the instructions for running the tests if you'd just like to do it to confirm that the library works correctly.