We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 230ceef commit 49eb3b1Copy full SHA for 49eb3b1
tests/Oxpecker.ViewEngine.Tests/Tools.Tests.fs
@@ -1,5 +1,6 @@
1
module Tools.Tests
2
3
+open System
4
open System.Net
5
open System.Text
6
open Oxpecker.ViewEngine
@@ -53,6 +54,6 @@ let ``HTMLEncoding.encodeCharsInto and WebUtility.HtmlEncode are exactly the sam
53
54
55
[<Fact>]
56
let ``indexOfHtmlEncodingChar works correctly`` () =
- CustomWebUtility.indexOfHtmlEncodingChar "test" |> shouldEqual -1
57
- CustomWebUtility.indexOfHtmlEncodingChar "test<sd" |> shouldEqual 4
58
- CustomWebUtility.indexOfHtmlEncodingChar "test😀sd" |> shouldEqual 4
+ CustomWebUtility.indexOfHtmlEncodingChar ("test".AsSpan()) |> shouldEqual -1
+ CustomWebUtility.indexOfHtmlEncodingChar ("test<sd".AsSpan()) |> shouldEqual 4
59
+ CustomWebUtility.indexOfHtmlEncodingChar ("test😀sd".AsSpan()) |> shouldEqual 4
0 commit comments