Skip to content

Commit f439dc2

Browse files
Rafael-SOWNetclaude
andcommitted
The imaginary Möbius power test asserts its verdict, not a clock
AnImaginaryMobiusPowerIsDeclinedWithinAMinute waited a minute for ((1 + i a x)/(1 - i a x))^(-5/4)/x^3 and asserted nothing else. It is settled in seven seconds on its own and ran past the minute twice on a loaded machine. It asserts what Integrate gives now: declined, or an answer that differentiates back; a regression to the two-minute search shows as a slow suite. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
1 parent 4d1f3b7 commit f439dc2

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎Sources/Tests/UnitTests/Calculus/ComplexCoefficientRationalIntegralTest.cs‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,19 @@ private static void DifferentiatesBack(string integrand)
8282

8383
/// <summary>
8484
/// A power of a quotient of linears with the imaginary unit in it, beside a power of x the
85-
/// substitution for it does not take down to something answered: declined, and within a
86-
/// minute. The scaling of the variable simplified it with the symbol beside the imaginary
87-
/// unit, and that ran past two minutes before the decline.
85+
/// substitution for it does not take down to something answered. The scaling of the
86+
/// variable simplified it with the symbol beside the imaginary unit, and that ran past two
87+
/// minutes before the decline; it is settled in seconds now, so a regression shows as a
88+
/// slow suite. Declined is a verdict, and an answer has to differentiate back.
8889
/// </summary>
8990
[Theory]
9091
[InlineData("((1 + i*a*x)/(1 - i*a*x))^(-5/4)/x^2")]
9192
[InlineData("((1 + i*a*x)/(1 - i*a*x))^(-5/4)/x^3")]
92-
public void AnImaginaryMobiusPowerIsDeclinedWithinAMinute(string integrand)
93+
public void AnImaginaryMobiusPowerIsSettled(string integrand)
9394
{
94-
var integrating = System.Threading.Tasks.Task.Run(() => integrand.ToEntity().Integrate("x"));
95-
Assert.True(integrating.Wait(TimeSpan.FromSeconds(60)), $"{integrand} was not settled within a minute");
95+
if (integrand.ToEntity().Integrate("x").Stringize().Contains("integral("))
96+
return;
97+
DifferentiatesBack(integrand);
9698
}
9799
}
98100
}

0 commit comments

Comments
 (0)