Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 22, 2024
1 parent 8a029aa commit bd2adae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
16 changes: 8 additions & 8 deletions exercises/practice/resistor-color-duo/ResistorColorDuoTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ open ResistorColorDuo

[<Fact>]
let ``Brown and black`` () =
value [ "brown"; "black" ] |> should equal 10
value ["brown"; "black"] |> should equal 10

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Blue and grey`` () =
value [ "blue"; "grey" ] |> should equal 68
value ["blue"; "grey"] |> should equal 68

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Yellow and violet`` () =
value [ "yellow"; "violet" ] |> should equal 47
value ["yellow"; "violet"] |> should equal 47

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``White and red`` () =
value [ "white"; "red" ] |> should equal 92
value ["white"; "red"] |> should equal 92

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Orange and orange`` () =
value [ "orange"; "orange" ] |> should equal 33
value ["orange"; "orange"] |> should equal 33

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Ignore additional colors`` () =
value [ "green"; "brown"; "orange" ]
|> should equal 51
value ["green"; "brown"; "orange"] |> should equal 51

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Black and brown, one-digit`` () =
value [ "black"; "brown" ] |> should equal 1
value ["black"; "brown"] |> should equal 1

24 changes: 8 additions & 16 deletions exercises/practice/resistor-color/ResistorColorTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,18 @@ open Xunit
open ResistorColor

[<Fact>]
let ``Black`` () = colorCode "black" |> should equal 0
let ``Black`` () =
colorCode "black" |> should equal 0

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``White`` () = colorCode "white" |> should equal 9
let ``White`` () =
colorCode "white" |> should equal 9

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Orange`` () = colorCode "orange" |> should equal 3
let ``Orange`` () =
colorCode "orange" |> should equal 3

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Colors`` () =
colors
|> should
equal
[ "black"
"brown"
"red"
"orange"
"yellow"
"green"
"blue"
"violet"
"grey"
"white" ]
colors |> should equal ["black"; "brown"; "red"; "orange"; "yellow"; "green"; "blue"; "violet"; "grey"; "white"]

0 comments on commit bd2adae

Please sign in to comment.