From f64684c02a0dd203d2e220a4583ff538e190bbab Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Sun, 7 Mar 2021 17:29:57 +0100 Subject: [PATCH] tmp --- src/Review/Test.elm | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/Review/Test.elm b/src/Review/Test.elm index b0d8ee0b..8b85b23c 100644 --- a/src/Review/Test.elm +++ b/src/Review/Test.elm @@ -1233,8 +1233,27 @@ findAndRemoveHelp element previous list = findAndRemoveHelp element (head :: previous) rest -notHappyPath = - Debug.todo "" +notHappyPath expected actual = + --case expected of + -- head :: rest -> + Debug.todo "notHappyPath" + + +checkGlobalErrorMatch : GlobalError -> ReviewError -> (() -> Expectation) +checkGlobalErrorMatch expectedError error_ = + --Expect.all + -- [ \() -> + -- (expectedError_.message == Rule.errorMessage error_) + -- |> Expect.true + -- (FailureMessage.messageMismatch + -- (extractExpectedErrorData expectedError) + -- error_ + -- ) + -- , checkMessageAppearsUnder codeInspector error_ expectedError + -- , checkDetailsAreCorrect error_ expectedError + -- , \() -> checkFixesAreCorrect codeInspector error_ expectedError + -- ] + Debug.todo "checkGLobal" checkAllGlobalErrorsMatch : { expected : List GlobalError, actual : List GlobalError } -> Expectation