summaryrefslogtreecommitdiff
path: root/src/scalacheck/org/scalacheck/Arg.scala
blob: 4961c78a26725d6c70456484a359a92f56e505db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*-------------------------------------------------------------------------*\
**  ScalaCheck                                                             **
**  Copyright (c) 2007-2013 Rickard Nilsson. All rights reserved.          **
**  http://www.scalacheck.org                                              **
**                                                                         **
**  This software is released under the terms of the Revised BSD License.  **
**  There is NO WARRANTY. See the file LICENSE for the full text.          **
\*------------------------------------------------------------------------ */

package org.scalacheck

case class Arg[+T](
  label: String,
  arg: T,
  shrinks: Int,
  origArg: T
)(implicit prettyPrinter: T => Pretty) {
  lazy val prettyArg: Pretty = prettyPrinter(arg)
  lazy val prettyOrigArg: Pretty = prettyPrinter(origArg)
}