From 7412e83dd3f259dbdfa36786ea3a547d462832cf Mon Sep 17 00:00:00 2001 From: Oliver Westphal Date: Mon, 31 Jul 2023 17:52:17 +0200 Subject: [PATCH] typos --- .github/actions/spelling/allow.txt | 1 - .github/actions/spelling/expect.txt | 2 ++ .github/actions/spelling/patterns.txt | 3 +++ src/Test/IOTasks/Z3.hs | 4 ++-- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt index 6e2ffbb..38c98c8 100644 --- a/.github/actions/spelling/allow.txt +++ b/.github/actions/spelling/allow.txt @@ -12,7 +12,6 @@ geben github https letzten -Nächste noch positiven Programm diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 8d62fd0..00eb5bd 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -17,6 +17,7 @@ implicits ints IOrep len +Line Linebreak Linebreaks mconcat @@ -32,6 +33,7 @@ NTrace nums Occured oneof +Perfprop SATs snd Subterms diff --git a/.github/actions/spelling/patterns.txt b/.github/actions/spelling/patterns.txt index 88f0923..144d004 100644 --- a/.github/actions/spelling/patterns.txt +++ b/.github/actions/spelling/patterns.txt @@ -26,3 +26,6 @@ # GHC LANGUAGE extension, HLINT options etc. \{-# .* #-\} + +# Umlaute +\b\w*[äöüßÄÖÜ]\w*\b diff --git a/src/Test/IOTasks/Z3.hs b/src/Test/IOTasks/Z3.hs index 0b4c94f..277900c 100644 --- a/src/Test/IOTasks/Z3.hs +++ b/src/Test/IOTasks/Z3.hs @@ -135,7 +135,7 @@ withGeneratedValue f (ValueGenerator g) sz = f <$> generate (g sz) pathScript :: Path -> ScriptMode -> Bool -> Z3R (SatResult [String], String) pathScript path mode checkOverflows = do - let (tyConstr,predConstr,overflConstr) = partitionPath path + let (tyConstr,predConstr,overflowConstr) = partitionPath path goal <- mkGoal True False False vars <- forM tyConstr $ @@ -149,7 +149,7 @@ pathScript path mode checkOverflows = do goalAssert goal =<< z3Predicate goal t e (map fst vars) when checkOverflows $ - forM_ overflConstr $ + forM_ overflowConstr $ \(OverflowConstraints ts e) -> forM_ ts (\t -> assertOverflowChecks goal t e (map fst vars))