Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Add PPOpts parameters to pretty printer functions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Feb 26, 2016
1 parent d3aa563 commit ad6ed7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/Tests/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ checkEqn sym (DefEqn pats rhs@(Term rtf)) = do
& docShowLocalNames .~ False
& docShowLocalTypes .~ True
let msg = "Equation right hand side has unbound variables:\n"
++ show (ppDefEqn ppTerm emptyLocalVarDoc (ppIdent sym) (DefEqn pats rhs)) ++ "\n"
++ show (ppTerm lvd PrecNone rhs) ++ "\n"
++ show (ppDefEqn (ppTerm defaultPPOpts) emptyLocalVarDoc (ppIdent sym) (DefEqn pats rhs)) ++ "\n"
++ show (ppTerm defaultPPOpts lvd PrecNone rhs) ++ "\n"
++ show (freesTerm rhs) ++ "\n"
++ show (ppTermDoc (ppTermF (\_ _ -> TermDoc . text . show) lvd PrecNone (freesTerm <$> rtf)))
++ show (ppTermDoc (ppTermF defaultPPOpts (\_ _ -> TermDoc . text . show) lvd PrecNone (freesTerm <$> rtf)))

assertEqual (namedMsg sym msg) 0 (freesTerm rhs `shiftR` nbound)

Expand Down

0 comments on commit ad6ed7a

Please sign in to comment.