Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry-packages
currycheck
Commits
a6bb628f
Commit
a6bb628f
authored
Dec 29, 2018
by
Michael Hanus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ANSI.Codes handling removed
parent
f88e5302
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/TestAppendix.curry
include/TestAppendix.curry
+1
-1
src/CC/Options.curry
src/CC/Options.curry
+1
-1
src/CurryCheck.curry
src/CurryCheck.curry
+2
-2
No files found.
include/TestAppendix.curry
View file @
a6bb628f
...
...
@@ -13,7 +13,7 @@ runPropertyTests withcolor withtime props = do
>>= return . Maybe.catMaybes
if null failedmsgs
then return 0
else do putStrLn $ (if withcolor then AnsiCodes.red else id) $
else do putStrLn $ (
{-
if withcolor then AnsiCodes.red else
-}
id) $
line ++
"\nFAILURES OCCURRED IN SOME TESTS:\n" ++
unlines failedmsgs ++ line
...
...
src/CC/Options.curry
View file @
a6bb628f
...
...
@@ -151,7 +151,7 @@ putStrIfDetails opts s = when (optVerb opts > 1) (putStr s >> hFlush stdout)
putStrLnIfDebug :: Options -> String -> IO ()
putStrLnIfDebug opts s = when (optVerb opts > 3) (putStrLn s >> hFlush stdout)
--- use some coloring (from
library Ansi
Codes) if color option is on:
--- use some coloring (from
System.Console.ANSI.
Codes) if color option is on:
withColor :: Options -> (String -> String) -> String -> String
withColor opts coloring = if optColor opts then coloring else id
...
...
src/CurryCheck.curry
View file @
a6bb628f
...
...
@@ -1363,8 +1363,8 @@ genMainTestModule opts mainmod orgtestmods = do
let mainFunction = genMainFunction opts mainmod testfuncs
imports = nub $ [ easyCheckModule, easyCheckExecModule
, searchTreeModule, generatorModule
, "List",
"AnsiCodes",
"Char", "Maybe", "System"
, "Profile" ] ++
, "List", "Char", "Maybe", "System"
, "Profile"
] ++ -- TODO: import also System.Console.ANSI.Codes
map (fst . fst) testtypes ++
map testModuleName testmods
appendix <- readFile (packagePath </> "include" </> "TestAppendix.curry")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment