forked from MNie/Expecto.Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSample.fs
36 lines (27 loc) · 1.14 KB
/
Sample.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module Tests
open Expecto
[<Tests>]
let tests =
testList "samples" [
testCase "universe exists (╭ರᴥ•́)" <| fun _ ->
let subject = true
Expect.isTrue subject "I compute, therefore I am."
testCase "when true is not (should fail)" <| fun _ ->
let subject = false
Expect.isTrue subject "I should fail because the subject is false"
testCase "I'm skipped (should skip)" <| fun _ ->
Tests.skiptest "Yup, waiting for a sunny day..."
testCase "I'm always fail (should fail)" <| fun _ ->
Tests.failtest "This was expected..."
testCase "contains things" <| fun _ ->
Expect.containsAll [| 2; 3; 4 |] [| 2; 4 |]
"This is the case; {2,3,4} contains {2,4}"
testCase "contains things (should fail)" <| fun _ ->
Expect.containsAll [| 2; 3; 4 |] [| 2; 4; 1 |]
"Expecting we have one (1) in there"
testCase "Sometimes I want to ༼ノಠل͟ಠ༽ノ ︵ ┻━┻" <| fun _ ->
Expect.equal "abcdëf" "abcdef" "These should equal"
test "I am (should fail)" {
"╰〳 ಠ 益 ಠೃ 〵╯" |> Expect.equal true false
}
]