Skip to content

Commit

Permalink
Fix compile errors in other test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops committed Nov 2, 2023
1 parent ff9e8cd commit 127ffb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/OpenTK.Tests.Integration/GameWindowTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module GameWindow =
use gw = openGW()
let signals = System.Collections.Generic.List<string>()
gw.add_Closing(fun _ -> signals.Add("Closing"))
gw.add_Closed(fun _ -> signals.Add("Closed"))
//gw.add_Closed(fun _ -> signals.Add("Closed"))

Assert.Equal([], signals)
gw.Close()
Expand Down Expand Up @@ -214,11 +214,11 @@ module GameWindow =
[<Fact>]
let ``Does RenderFrequency limit the timing of RenderFrame`` () =
use gw = openGW()
gw.RenderFrequency <- 10.0
gw.UpdateFrequency <- 10.0
let mutable calls = 0
let mutable reportedElapsed = 0.0
let totalCalls = 10
let expectedElapsed = 1.0/gw.RenderFrequency * (float totalCalls)
let expectedElapsed = 1.0/gw.UpdateFrequency * (float totalCalls)
gw.add_RenderFrame(fun e -> calls <- calls+1; reportedElapsed <- reportedElapsed+e.Time; if calls = totalCalls then gw.Close())
let st = new Stopwatch()
st.Start()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</ItemGroup>
<ItemGroup>
<!-- FIXME: Make these paket dependencies? -->
<PackageReference Include="FsCheck.Xunit" Version="2.14.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand All @@ -32,5 +33,5 @@
</ItemGroup>
<Import Project="..\..\props\common.props" />
<Import Project="..\..\props\netfx-mono.props" />
<Import Project="..\..\.paket\Paket.Restore.targets" />
<!--<Import Project="..\..\.paket\Paket.Restore.targets" />-->
</Project>
2 changes: 1 addition & 1 deletion tests/OpenToolkit.OpenCL.Tests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Program
{
static void Main(string[] args)
{
ToGrayscale.ConvertToGrayscale("image.jpg");
//ToGrayscale.ConvertToGrayscale("image.jpg");

//Get the ids of available opencl platforms

Expand Down

0 comments on commit 127ffb7

Please sign in to comment.