File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,10 @@ let expecto =
849849 testCase " when string is empty" ( fun _ ->
850850 Expect.isNotEmpty " " " should fail because string is empty"
851851 ) |> assertTestFails
852+
853+ testCase " when string is whitespace" ( fun _ ->
854+ Expect.isNotEmpty " " " should pass because string is whitespace"
855+ )
852856 ]
853857
854858 testList " string isnotwhitespace" [
@@ -858,10 +862,6 @@ let expecto =
858862 testCase " when string is empty" ( fun _ ->
859863 Expect.isNotEmpty " " " should fail because string is empty"
860864 ) |> assertTestFails
861-
862- testCase " when string is whitespace" ( fun _ ->
863- Expect.isNotEmpty " " " should fail because string is whitespace"
864- ) |> assertTestFails
865865 ]
866866
867867 testList " string matches pattern for isMatch" [
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ let isNotInfinity actual message =
260260/// Expect the passed string not to be empty.
261261let isNotEmpty ( actual : string ) message =
262262 isNotNull actual message
263- if String.IsNullOrWhiteSpace actual then Tests.failtestf " %s . Should not be empty." message
263+ if String.IsNullOrEmpty actual then Tests.failtestf " %s . Should not be empty." message
264264
265265/// Expect the passed string is not whitespace
266266let isNotWhitespace ( actual : string ) message =
You can’t perform that action at this time.
0 commit comments