Test float comparisons (#73)

This commit is contained in:
Patrick Stevens
2025-06-27 15:06:01 +01:00
committed by GitHub
parent 7c636b61a7
commit 641040509f
8 changed files with 538 additions and 28 deletions

View File

@@ -172,6 +172,12 @@ module TestPureCases =
NativeImpls = MockEnv.make ()
LocalVariablesOfMain = [ CliType.Numeric (CliNumericType.Int32 10) ] |> Some
}
{
FileName = "Floats.cs"
ExpectedReturnCode = 0
NativeImpls = MockEnv.make ()
LocalVariablesOfMain = None
}
{
FileName = "TryCatchWithThrowInBody.cs"
ExpectedReturnCode = 4
@@ -218,7 +224,7 @@ module TestPureCases =
| EvalStackValue.Int32 i -> i
| ret -> failwith $"expected program to return an int, but it returned %O{ret}"
realResult.ExitCode |> shouldEqual exitCode
exitCode |> shouldEqual realResult.ExitCode
exitCode |> shouldEqual case.ExpectedReturnCode