File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,6 +153,21 @@ GeoToolsBoundingBoxTest >> testCenterAbsoluteCoordinates [
153153 self assert: boundingBox centerAbsoluteCoordinates longitudeInDegrees equals: 0 .
154154]
155155
156+ { #category : #tests }
157+ GeoToolsBoundingBoxTest >> testIsValid [
158+
159+ self deny: boundingBox isValid.
160+
161+ self setUpZeroBox.
162+ self assert: boundingBox isValid.
163+
164+ self setUpSmallBox.
165+ self assert: boundingBox isValid.
166+
167+ self setUpTopRightSmallBox.
168+ self assert: boundingBox isValid
169+ ]
170+
156171{ #category : #tests }
157172GeoToolsBoundingBoxTest >> testLeftLongitudeInDegrees [
158173
Original file line number Diff line number Diff line change @@ -90,6 +90,15 @@ TGeoToolsBoundingBox >> centerAbsoluteCoordinates [
9090 longitudeInDegrees: longitude
9191]
9292
93+ { #category : #testing }
94+ TGeoToolsBoundingBox >> isValid [
95+
96+ ^ (self topLeftAbsoluteCoordinates notNil and : [
97+ self topLeftAbsoluteCoordinates isValid ]) and : [
98+ self bottomRightAbsoluteCoordinates notNil and : [
99+ self bottomRightAbsoluteCoordinates isValid ] ]
100+ ]
101+
93102{ #category : #accessing }
94103TGeoToolsBoundingBox >> leftLongitudeInDegrees [
95104
You can’t perform that action at this time.
0 commit comments