Skip to content

Commit

Permalink
Fixed build warnings in tests
Browse files Browse the repository at this point in the history
Lanayx committed Dec 13, 2024
1 parent 230ceef commit 49eb3b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Oxpecker.ViewEngine.Tests/Tools.Tests.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Tools.Tests

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

[<Fact>]
let ``indexOfHtmlEncodingChar works correctly`` () =
CustomWebUtility.indexOfHtmlEncodingChar "test" |> shouldEqual -1
CustomWebUtility.indexOfHtmlEncodingChar "test<sd" |> shouldEqual 4
CustomWebUtility.indexOfHtmlEncodingChar "test😀sd" |> shouldEqual 4
CustomWebUtility.indexOfHtmlEncodingChar ("test".AsSpan()) |> shouldEqual -1
CustomWebUtility.indexOfHtmlEncodingChar ("test<sd".AsSpan()) |> shouldEqual 4
CustomWebUtility.indexOfHtmlEncodingChar ("test😀sd".AsSpan()) |> shouldEqual 4

0 comments on commit 49eb3b1

Please sign in to comment.