mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Test more natural way of designating relative dates.
This commit is contained in:
parent
23461f1d6c
commit
7239eb809a
@ -212,15 +212,15 @@
|
||||
(let* ((option-db (new-gnc-optiondb))
|
||||
(date-opt (gnc-register-date-option-set
|
||||
option-db "foo" "bar" "baz" "Phony Option"
|
||||
(list (RelativeDatePeriod-TODAY)
|
||||
(RelativeDatePeriod-START-THIS-MONTH)
|
||||
(RelativeDatePeriod-START-PREV-MONTH)
|
||||
(RelativeDatePeriod-START-CURRENT-QUARTER)
|
||||
(RelativeDatePeriod-START-PREV-QUARTER)
|
||||
(RelativeDatePeriod-START-CAL-YEAR)
|
||||
(RelativeDatePeriod-START-CAL-YEAR)
|
||||
(RelativeDatePeriod-START-PREV-YEAR)
|
||||
(RelativeDatePeriod-START-ACCOUNTING-PERIOD)) #t)))
|
||||
`(today
|
||||
start-this-month
|
||||
start-prev-month
|
||||
start-current-quarter
|
||||
start-prev-quarter
|
||||
start-cal-year
|
||||
start-cal-year
|
||||
start-prev-year
|
||||
start-accounting-period) #t)))
|
||||
(test-equal (gnc-accounting-period-fiscal-start)
|
||||
(gnc-option-value option-db "foo" "bar")))
|
||||
(test-end "test-gnc-test-date-set-option"))
|
||||
|
Loading…
Reference in New Issue
Block a user