Skip to content

Commit 4081b03

Browse files
committed
test: replace +01 to +1
1 parent 479e621 commit 4081b03

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/Spatial.Tests/Euclidean/Circle2DTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,33 +104,33 @@ public void CircleIntersectWithLine2D(string sc, double radius, string sps, stri
104104
////segments cross the circle's contour just 1 time
105105
[TestCase("0,0", 1, "+0,+10", "+10,+10", "empty")]
106106
[TestCase("0,0", 1, "+0,+1", "+10,+1", "0,1")]
107-
[TestCase("0,0", 1, "+0,0", "+10,0", "1,0")]
107+
[TestCase("0,0", 1, "+0,+0", "+10,+0", "1,0")]
108108
[TestCase("0,0", 1, "+0,-1", "+10,-1", "0,-1")]
109109
[TestCase("0,0", 1, "+0,-10", "+10,-10", "empty")]
110110
////segment contains no intersections(px of the startingPoint is too big to intersect with the circle)
111111
[TestCase("0,0", 1, "+10,+10", "+100,+10", "empty")]
112-
[TestCase("0,0", 1, "+10,+01", "+100,+1", "empty")]
113-
[TestCase("0,0", 1, "+10,+00", "+100,0", "empty")]
114-
[TestCase("0,0", 1, "+10,-01", "+100,-1", "empty")]
112+
[TestCase("0,0", 1, "+10,+1", "+100,+1", "empty")]
113+
[TestCase("0,0", 1, "+10,+0", "+100,0", "empty")]
114+
[TestCase("0,0", 1, "+10,-1", "+100,-1", "empty")]
115115
[TestCase("0,0", 1, "+10,-10", "+100,-10", "empty")]
116116
//parallel to Y-axis
117117
////segment contains the all intersections(same to the cases of circle and line)
118118
[TestCase("0,0", 1, "-10,-10", "-10,+10", "empty")]
119119
[TestCase("0,0", 1, "-1,-10", "-1,+10", "-1,0")]
120-
[TestCase("0,0", 1, "0,-10", "0,+10", "0,+1;0,-1")]
120+
[TestCase("0,0", 1, "+0,-10", "+0,+10", "0,+1;0,-1")]
121121
[TestCase("0,0", 1, "+1,-10", "+1,+10", "+1,0")]
122122
[TestCase("0,0", 1, "+10,-10", "+10,+10", "EMPTY")]
123123
////segments cross the circle's contour just 1 time
124124
[TestCase("0,0", 1, "+10,0", "+10,+10", "empty")]
125125
[TestCase("0,0", 1, "+1,0", "+1,+10", "+1,0")]
126-
[TestCase("0,0", 1, "0,0", "0,+10", "0,+1")]
126+
[TestCase("0,0", 1, "+0,0", "+0,+10", "0,+1")]
127127
[TestCase("0,0", 1, "-1,0", "-1,+10", "-1,0")]
128128
[TestCase("0,0", 1, "-10,0", "-10,+10", "empty")]
129129
////segment contains no intersections(py of the startingPoint is too big to intersect with the circle)
130130
[TestCase("0,0", 1, "+10,+10", "+10,+100", "empty")]
131-
[TestCase("0,0", 1, "+01,+10", "+1,+100", "empty")]
132-
[TestCase("0,0", 1, "+00,+10", "0,+100", "empty")]
133-
[TestCase("0,0", 1, "-01,+10", "-1,+100", "empty")]
131+
[TestCase("0,0", 1, "+1,+10", "+1,+100", "empty")]
132+
[TestCase("0,0", 1, "+0,+10", "+0,+100", "empty")]
133+
[TestCase("0,0", 1, "-1,+10", "-1,+100", "empty")]
134134
[TestCase("0,0", 1, "-10,+10", "-10,+100", "empty")]
135135
//general cases
136136
////segment contains the all intersections(same to the cases of circle and line)
@@ -142,14 +142,14 @@ public void CircleIntersectWithLine2D(string sc, double radius, string sps, stri
142142
////segments cross the circle's contour just 1 time
143143
[TestCase("0,0", 1, "+10,0", "+10,+10", "empty")]
144144
[TestCase("0,0", 1, "+1,0", "+1,+10", "+1,0")]
145-
[TestCase("0,0", 1, "0,0", "0,+10", "0,+1")]
145+
[TestCase("0,0", 1, "+0,0", "+0,+10", "0,+1")]
146146
[TestCase("0,0", 1, "-1,0", "-1,+10", "-1,0")]
147147
[TestCase("0,0", 1, "-10,0", "-10,+10", "empty")]
148148
////segment contains no intersections(py of the startingPoint is too big to intersect with the circle)
149149
[TestCase("0,0", 1, "+10,+10", "+10,+100", "empty")]
150-
[TestCase("0,0", 1, "+01,+10", "+1,+100", "empty")]
151-
[TestCase("0,0", 1, "+00,+10", "0,+100", "empty")]
152-
[TestCase("0,0", 1, "-01,+10", "-1,+100", "empty")]
150+
[TestCase("0,0", 1, "+1,+10", "+1,+100", "empty")]
151+
[TestCase("0,0", 1, "+0,+10", "+0,+100", "empty")]
152+
[TestCase("0,0", 1, "-1,+10", "-1,+100", "empty")]
153153
[TestCase("0,0", 1, "-10,+10", "-10,+100", "empty")]
154154
public void CircleIntersectWithLineSegment2D_NumberOfIntersections(string sCenter, double radius, string sStart, string sEnd, string expectedIntersectionsAsString)
155155
{
@@ -163,7 +163,7 @@ public void CircleIntersectWithLineSegment2D_NumberOfIntersections(string sCente
163163
{
164164
var a = actual[i];
165165
var e = expected[i];
166-
AssertGeometry.AreEqual(a, e, 1e-3); //needs to fix for the default tolerance
166+
AssertGeometry.AreEqual(a, e, 1e-3); //FIXME!
167167
}
168168
}
169169

0 commit comments

Comments
 (0)