File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
jvm/src/test/scala/org/threeten/bp/chrono Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ lazy val pomData =
93
93
<name >Carlos Quiroz </name >
94
94
<url >https:// github.com/ cquiroz/</ url>
95
95
</contributor >
96
+ <contributor >
97
+ <name >Javier Fernandez - Ivern </name >
98
+ <url >https:// github.com/ ivern</url >
99
+ </contributor >
100
+ <contributor >
101
+ <name >Martin Baker </name >
102
+ <url >https:// github.com/ kemokid</url >
103
+ </contributor >
96
104
<contributor >
97
105
<name >Keith Harris </name >
98
106
<url >https:// github.com/ keithharris</url >
@@ -120,8 +128,4 @@ lazy val pomData =
120
128
<contributor >
121
129
<name >Sherman Shen </name >
122
130
</contributor >
123
- <contributor >
124
- <name >Javier Fernandez - Ivern </name >
125
- <url >https:// github.com/ ivern</url >
126
- </contributor >
127
131
</contributors >
Original file line number Diff line number Diff line change 69
69
Replace Java code with Scala code.
70
70
</action >
71
71
</release >
72
+ <release version =" 1.3.3" date =" SNAPSHOT" description =" v1.3.3" >
73
+ <action dev =" kemokid" type =" fix" >
74
+ Fix HijrahDate aligned-day-of-month field.
75
+ Fixes #47.
76
+ </action >
77
+ </release >
72
78
<release version =" 1.3.2" date =" SNAPSHOT" description =" v1.3.2" >
73
79
<action dev =" jodastephen" type =" fix" >
74
80
Graceful fallback when printing time-zone name.
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import org.threeten.bp.LocalDateTime
44
44
import org .threeten .bp .Month
45
45
import org .threeten .bp .temporal .TemporalAdjusters
46
46
import org .threeten .bp .temporal .ChronoField .ALIGNED_DAY_OF_WEEK_IN_MONTH
47
+ import org .threeten .bp .temporal .ChronoField .ALIGNED_WEEK_OF_MONTH
47
48
48
49
/** Test. */
49
50
@ Test class TestHijrahChronology {
@@ -78,8 +79,14 @@ import org.threeten.bp.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH
78
79
79
80
@ Test
80
81
def test_alignedDayOfWeekInMonth (): Unit = {
81
- val date : HijrahDate = HijrahChronology .INSTANCE .date(1728 , 10 , 28 );
82
- assertEquals(date.getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH ), 7 );
82
+ var dom = 1
83
+ while (dom <= 29 ) {
84
+ var date : HijrahDate = HijrahChronology .INSTANCE .date(1728 , 10 , dom)
85
+ assertEquals(date.getLong(ALIGNED_WEEK_OF_MONTH ), ((dom - 1 ) / 7 ) + 1 )
86
+ assertEquals(date.getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH ), ((dom - 1 ) % 7 ) + 1 )
87
+ date = date.plusDays(1 )
88
+ dom += 1
89
+ }
83
90
}
84
91
85
92
@ Test def test_adjust1 (): Unit = {
You can’t perform that action at this time.
0 commit comments