nick8325 / nick8325/quickcheck
Quickcheck warns about commented-out properties
Open
Nobody has claimed this yet.
bug
- Dominant language
- Haskell
- Stars
- 790
- Forks
- 130
- Avg merge
- 16h 41m
- Merged PRs (30d)
- 2
Description
Applies to ver. 2.8.1
{-# LANGUAGE TemplateHaskell #-}
import Test.QuickCheck
import Test.QuickCheck.All
{-
prop_old_freeVars_Term conf x = True
-}
-- Template Haskell hack to make the following $quickCheckAll work under ghc-7.8.
return []
-- | All tests as collected by 'quickCheckAll'.
tests :: IO Bool
tests = do
putStrLn "Agda.TypeChecking.Free.Tests"
$quickCheckAll
gives warning
/home/abel/agda/src/full/Agda/TypeChecking/Free/Tests.hs:129:3: Warning:
Name prop_old_freeVars_Term found in source file but was not in scope
which turns into error with -Werror
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Haskell example with Test.QuickCheck.All and quickCheckAll under -Werror. Trace how quickCheckAll handles names found in source but not in scope; done means the commented-out prop_old_freeVars_Term no longer produces the warning while active properties continue to be collected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100