mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
wxDateTimeChristianHolidays was tested with a wxDateTimeUSCatholicFeasts already existing and taking precedence. I.e. the tests for Christmas in ChristianHolidays actually tested (again) the USCatholicFeasts implementation. This reveals an off-by-one bug in wxDateTimeChristianHolidays::DoIsHoliday(), which doesn't use the enum symbol for month, and declares Christmas to be on the 25th day of the 13th month. Further, this raises the question whether it is a bad idea to have the authority implementations in a header. Fixing bugs like this would require recompiling the application, instead of simply updating the DLL/dylib.
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.