From fac881d61176f04a4062db710df98924a76b0ffb Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 18 Dec 2022 20:26:07 +1100 Subject: Add unit testing Install vitest, happy-dom, and @testing-library/vue Add lib.ts and rbtree.ts tests in tests/ Modularise some date-range-managing code from App.vue into lib.ts --- backend/histplorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/histplorer.py b/backend/histplorer.py index 9f9e8ad..2c23b8e 100755 --- a/backend/histplorer.py +++ b/backend/histplorer.py @@ -41,7 +41,7 @@ class HistDate: - 'month' and 'day' are at least 1, if given - 'gcal' may be: - True: Indicates a Gregorian calendar date - - False: Means the date should be converted and displayed as a Julian calendar date + - False: Means the date should, for display, be converted to a Julian calendar date - None: 'month' and 'day' are 1 (used for dates before the Julian period starting year 4713 BCE) """ def __init__(self, gcal: bool | None, year: int, month=1, day=1): -- cgit v1.2.3