Skip to content

Commit 49eb3b1

Browse files
committed
Fixed build warnings in tests
1 parent 230ceef commit 49eb3b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/Oxpecker.ViewEngine.Tests/Tools.Tests.fs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Tools.Tests
22

3+
open System
34
open System.Net
45
open System.Text
56
open Oxpecker.ViewEngine
@@ -53,6 +54,6 @@ let ``HTMLEncoding.encodeCharsInto and WebUtility.HtmlEncode are exactly the sam
5354

5455
[<Fact>]
5556
let ``indexOfHtmlEncodingChar works correctly`` () =
56-
CustomWebUtility.indexOfHtmlEncodingChar "test" |> shouldEqual -1
57-
CustomWebUtility.indexOfHtmlEncodingChar "test<sd" |> shouldEqual 4
58-
CustomWebUtility.indexOfHtmlEncodingChar "test😀sd" |> shouldEqual 4
57+
CustomWebUtility.indexOfHtmlEncodingChar ("test".AsSpan()) |> shouldEqual -1
58+
CustomWebUtility.indexOfHtmlEncodingChar ("test<sd".AsSpan()) |> shouldEqual 4
59+
CustomWebUtility.indexOfHtmlEncodingChar ("test😀sd".AsSpan()) |> shouldEqual 4

0 commit comments

Comments
 (0)