12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // This file was auto-generated based on version 2.2.0 of the canonical data.
-
- module DartsTests
-
- open FsUnit.Xunit
- open Xunit
-
- open Darts
-
- [<Fact>]
- let ``Missed target`` () =
- score -9.0 9.0 |> should equal 0
-
- [<Fact>]
- let ``On the outer circle`` () =
- score 0.0 10.0 |> should equal 1
-
- [<Fact>]
- let ``On the middle circle`` () =
- score -5.0 0.0 |> should equal 5
-
- [<Fact>]
- let ``On the inner circle`` () =
- score 0.0 -1.0 |> should equal 10
-
- [<Fact>]
- let ``Exactly on centre`` () =
- score 0.0 0.0 |> should equal 10
-
- [<Fact>]
- let ``Near the centre`` () =
- score -0.1 -0.1 |> should equal 10
-
- [<Fact>]
- let ``Just within the inner circle`` () =
- score 0.7 0.7 |> should equal 10
-
- [<Fact>]
- let ``Just outside the inner circle`` () =
- score 0.8 -0.8 |> should equal 5
-
- [<Fact>]
- let ``Just within the middle circle`` () =
- score -3.5 3.5 |> should equal 5
-
- [<Fact>]
- let ``Just outside the middle circle`` () =
- score -3.6 -3.6 |> should equal 1
-
- [<Fact>]
- let ``Just within the outer circle`` () =
- score -7.0 7.0 |> should equal 1
-
- [<Fact>]
- let ``Just outside the outer circle`` () =
- score 7.1 -7.1 |> should equal 0
-
- [<Fact>]
- let ``Asymmetric position between the inner and middle circles`` () =
- score 0.5 -4.0 |> should equal 5
|