Skip to content

Commit 119d672

Browse files
author
Jamil Maqdis Anton
committed
remove tests that do not pass in expecto template
1 parent b835711 commit 119d672

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

tests/Sample.fs

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,20 @@ open Expecto
44

55
[<Tests>]
66
let tests =
7-
testList "samples" [
8-
testCase "universe exists (╭ರᴥ•́)" <| fun _ ->
9-
let subject = true
10-
Expect.isTrue subject "I compute, therefore I am."
7+
testList
8+
"samples"
9+
[ testCase "universe exists (╭ರᴥ•́)"
10+
<| fun _ ->
11+
let subject = true
12+
Expect.isTrue subject "I compute, therefore I am."
1113

12-
testCase "when true is not (should fail)" <| fun _ ->
13-
let subject = false
14-
Expect.isTrue subject "I should fail because the subject is false"
1514

16-
testCase "I'm skipped (should skip)" <| fun _ ->
17-
Tests.skiptest "Yup, waiting for a sunny day..."
15+
testCase "I'm skipped (should skip)"
16+
<| fun _ -> Tests.skiptest "Yup, waiting for a sunny day..."
1817

19-
testCase "I'm always fail (should fail)" <| fun _ ->
20-
Tests.failtest "This was expected..."
2118

22-
testCase "contains things" <| fun _ ->
23-
Expect.containsAll [| 2; 3; 4 |] [| 2; 4 |]
24-
"This is the case; {2,3,4} contains {2,4}"
19+
testCase "contains things"
20+
<| fun _ -> Expect.containsAll [| 2; 3; 4 |] [| 2; 4 |] "This is the case; {2,3,4} contains {2,4}"
2521

26-
testCase "contains things (should fail)" <| fun _ ->
27-
Expect.containsAll [| 2; 3; 4 |] [| 2; 4; 1 |]
28-
"Expecting we have one (1) in there"
29-
30-
testCase "Sometimes I want to ༼ノಠل͟ಠ༽ノ ︵ ┻━┻" <| fun _ ->
31-
Expect.equal "abcdëf" "abcdef" "These should equal"
32-
33-
test "I am (should fail)" {
34-
"╰〳 ಠ 益 ಠೃ 〵╯" |> Expect.equal true false
35-
}
36-
]
22+
testCase "Sometimes I want to ༼ノಠل͟ಠ༽ノ ︵ ┻━┻"
23+
<| fun _ -> Expect.equal "abcdef" "abcdef" "These should equal" ]

0 commit comments

Comments
 (0)