From bd2adaea0ab51a51346a1aea6aef76973b365122 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 22 Oct 2024 15:25:07 +0200 Subject: [PATCH] Fix formatting --- .../ResistorColorDuoTests.fs | 16 ++++++------- .../resistor-color/ResistorColorTests.fs | 24 +++++++------------ 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/exercises/practice/resistor-color-duo/ResistorColorDuoTests.fs b/exercises/practice/resistor-color-duo/ResistorColorDuoTests.fs index 0b2f68df..be4ff5ee 100644 --- a/exercises/practice/resistor-color-duo/ResistorColorDuoTests.fs +++ b/exercises/practice/resistor-color-duo/ResistorColorDuoTests.fs @@ -7,29 +7,29 @@ open ResistorColorDuo [] let ``Brown and black`` () = - value [ "brown"; "black" ] |> should equal 10 + value ["brown"; "black"] |> should equal 10 [] let ``Blue and grey`` () = - value [ "blue"; "grey" ] |> should equal 68 + value ["blue"; "grey"] |> should equal 68 [] let ``Yellow and violet`` () = - value [ "yellow"; "violet" ] |> should equal 47 + value ["yellow"; "violet"] |> should equal 47 [] let ``White and red`` () = - value [ "white"; "red" ] |> should equal 92 + value ["white"; "red"] |> should equal 92 [] let ``Orange and orange`` () = - value [ "orange"; "orange" ] |> should equal 33 + value ["orange"; "orange"] |> should equal 33 [] let ``Ignore additional colors`` () = - value [ "green"; "brown"; "orange" ] - |> should equal 51 + value ["green"; "brown"; "orange"] |> should equal 51 [] let ``Black and brown, one-digit`` () = - value [ "black"; "brown" ] |> should equal 1 + value ["black"; "brown"] |> should equal 1 + diff --git a/exercises/practice/resistor-color/ResistorColorTests.fs b/exercises/practice/resistor-color/ResistorColorTests.fs index ce20e9b3..41c6aa54 100644 --- a/exercises/practice/resistor-color/ResistorColorTests.fs +++ b/exercises/practice/resistor-color/ResistorColorTests.fs @@ -6,26 +6,18 @@ open Xunit open ResistorColor [] -let ``Black`` () = colorCode "black" |> should equal 0 +let ``Black`` () = + colorCode "black" |> should equal 0 [] -let ``White`` () = colorCode "white" |> should equal 9 +let ``White`` () = + colorCode "white" |> should equal 9 [] -let ``Orange`` () = colorCode "orange" |> should equal 3 +let ``Orange`` () = + colorCode "orange" |> should equal 3 [] 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"] +