]> gitweb.factorcode.org Git - factor.git/commitdiff
Add tests for weekday? and weekend?
authorEvgenii Petrov <blinunleius@gmail.com>
Wed, 1 Nov 2023 18:26:20 +0000 (18:26 +0000)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 1 Nov 2023 19:08:06 +0000 (12:08 -0700)
basis/calendar/calendar-tests.factor

index 11690fdb18eb024ea1a6ad574e8e7ae898e620be..5990f83769c5401170066165e57aa7f335bf0b5c 100644 (file)
@@ -287,6 +287,12 @@ IN: calendar
 { 151 } [ 2014 1 10 <date>  2014 8 9 <date>  weekdays-between ] unit-test
 { 151 } [ 2014 1 10 <date>  2014 8 10 <date>  weekdays-between ] unit-test
 
+{ t } [ 2014 1 10 <date> weekday? ] unit-test
+{ f } [ 2014 1 10 <date> weekend? ] unit-test
+
+{ t } [ 2014 1 11 <date> weekend? ] unit-test
+{ f } [ 2014 1 11 <date> weekday? ] unit-test
+
 
 { t } [
     2014 1 1 <date-gmt>