X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fformatting%2Fformatting-tests.factor;h=8b4bf16b12ca4bd947f012aaa12c125b06b887e0;hp=b8a95c7888ccca70c5152e0f1febe0a2d3859e72;hb=1198695223596ff2306a3204a097c00fad1f1cdc;hpb=2e75988d2af45d54c51c942cb872c363aa8cd834 diff --git a/basis/formatting/formatting-tests.factor b/basis/formatting/formatting-tests.factor index b8a95c7888..8b4bf16b12 100644 --- a/basis/formatting/formatting-tests.factor +++ b/basis/formatting/formatting-tests.factor @@ -178,3 +178,19 @@ ${ os windows? "1.000000e+00" "1e+00" ? } [ 1.0 "%.0e" sprintf ] unit-test { "44" } [ 2020 11 6 "%U" strftime ] unit-test { "44" } [ 2020 11 6 "%W" strftime ] unit-test + +{ "00" } [ 2022 1 1 "%U" strftime ] unit-test +{ "01" } [ 2022 1 2 "%U" strftime ] unit-test +{ "01" } [ 2022 1 3 "%U" strftime ] unit-test + +{ "00" } [ 2022 1 1 "%W" strftime ] unit-test +{ "00" } [ 2022 1 2 "%W" strftime ] unit-test +{ "01" } [ 2022 1 3 "%W" strftime ] unit-test + +{ "34" } [ 2022 8 27 "%U" strftime ] unit-test +{ "35" } [ 2022 8 28 "%U" strftime ] unit-test +{ "35" } [ 2022 8 29 "%U" strftime ] unit-test + +{ "34" } [ 2022 8 27 "%W" strftime ] unit-test +{ "34" } [ 2022 8 28 "%W" strftime ] unit-test +{ "35" } [ 2022 8 29 "%W" strftime ] unit-test