USING: calendar.format calendar kernel math tools.test\r
-io.streams.string accessors io math.order ;\r
+io.streams.string accessors io math.order sequences ;\r
IN: calendar.format.tests\r
\r
[ 0 ] [\r
] [ "Thursday, 02-Oct-2008 23:59:59 GMT" cookie-string>timestamp ] unit-test\r
\r
\r
+[ ]\r
+[ { 2008 2009 } [ year. ] each ] unit-test\r
[ month-name write bl number>string print ]\r
[ 1 zeller-congruence ]\r
[ (days-in-month) day-abbreviations2 " " join print ] 2tri\r
- over " " <repetition> concat write\r
+ over " " <repetition> "" concat-as write\r
[\r
[ 1 + day. ] keep\r
1 + + 7 mod zero? [ nl ] [ bl ] if\r