RegressionTests__TimeAndDateTest.st
changeset 737 06d8d2821c46
parent 736 b51ba7f6c03f
child 745 fde865b5dece
--- a/RegressionTests__TimeAndDateTest.st	Mon Nov 05 14:30:04 2012 +0100
+++ b/RegressionTests__TimeAndDateTest.st	Mon Nov 05 14:31:53 2012 +0100
@@ -10,12 +10,6 @@
 !
 
 
-!TimeAndDateTest class methodsFor:'others'!
-
-version_CVS
-    ^ '$Header$'
-! !
-
 !TimeAndDateTest methodsFor:'Testing'!
 
 test_01_ReadingTimes
@@ -138,6 +132,16 @@
     self assert:(Date newDay:4 month:11 year:2012) weekInYear == 44.
     self assert:(Date newDay:12 month:11 year:2012) weekInYear == 46.
 
+    self assert:(Date newDay:29 month:12 year:2014) weekInYear == 1.    "/ YES!!
+    self assert:(Date newDay:30 month:12 year:2014) weekInYear == 1.    "/ YES!!
+    self assert:(Date newDay:31 month:12 year:2014) weekInYear == 1.    "/ YES!!
+    self assert:(Date newDay:1 month:1 year:2015) weekInYear == 1.
+    self assert:(Date newDay:2 month:1 year:2015) weekInYear == 1.
+    self assert:(Date newDay:3 month:1 year:2015) weekInYear == 1.
+    self assert:(Date newDay:4 month:1 year:2015) weekInYear == 1.
+
+    self assert:(Date newDay:5 month:1 year:2015) weekInYear == 2.
+
     "
      self new test_03_calenderWeek
     "
@@ -147,4 +151,8 @@
 
 version
     ^ '$Header$'
+!
+
+version_CVS
+    ^ '$Header$'
 ! !