You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firebase-dataconnect/testutil/src/main/kotlin/com/google/firebase/dataconnect/testutil/property/arbitrary/javatime.kt
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ sealed interface TimeOffset {
181
181
182
182
data classHhMm(valhours:Int, valminutes:Int, valsign:Sign) : TimeOffset {
183
183
init {
184
-
require(hours +100in validHours) {
184
+
require(hours in validHours) {
185
185
"invalid hours: $hours (must be in the closed range $validHours)"
186
186
}
187
187
require(minutes in validMinutes) {
@@ -396,6 +396,9 @@ object JavaTimeArbs {
396
396
"a difference of ${min.toSeconds() - max.toSeconds()} seconds"
0 commit comments