Skip to content

Commit 239dfe6

Browse files
committed
Fix copy-and-paste error in tests.
The area and circumference of the unit circle just happen to have the same value.
1 parent 8efdc2e commit 239dfe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/SideBySide/StoredProcedureTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public async Task StoredProcedureCircleCached(string executorType)
208208
cmd.Parameters.Add(new MySqlParameter
209209
{
210210
ParameterName = "@radius",
211-
Value = 1.0,
211+
Value = 1.5,
212212
#if BASELINE
213213
Direction = ParameterDirection.Input,
214214
#endif
@@ -268,7 +268,7 @@ private async Task CircleAssertions(DbCommand cmd, string executorType)
268268
Assert.Equal((string)cmd.Parameters["@name"].Value + (string)cmd.Parameters["@shape"].Value, result);
269269

270270
Assert.Equal(2 * (double)cmd.Parameters["@radius"].Value, cmd.Parameters["@diameter"].Value);
271-
Assert.Equal(Math.PI * (double)cmd.Parameters["@radius"].Value, cmd.Parameters["@area"].Value);
271+
Assert.Equal(2.0 * Math.PI * (double)cmd.Parameters["@radius"].Value, cmd.Parameters["@circumference"].Value);
272272
Assert.Equal(Math.PI * Math.Pow((double)cmd.Parameters["@radius"].Value, 2), cmd.Parameters["@area"].Value);
273273
Assert.Equal((double)cmd.Parameters["@area"].Value * (double)cmd.Parameters["@height"].Value, cmd.Parameters["@volume"].Value);
274274
}

0 commit comments

Comments
 (0)