Skip to content
Snippets Groups Projects
  1. Jul 21, 2011
  2. Jul 13, 2011
  3. Jun 28, 2011
    • Iustin Pop's avatar
      htools: allow unittest to be replayed · 509809db
      Iustin Pop authored
      
      This just adds glue to allow replaying of tests using a given RNG state
      and test size (both are needed for exact replayability).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      509809db
    • Iustin Pop's avatar
      htools: Switch to QuickCheck 2.x · 8e4f6d56
      Iustin Pop authored
      
      Since current distros don't package anymore QuickCheck 1.x, let's move
      to 2.x.
      
      This requires also a few changes to the code:
      
      - Test.QuickCheck.Batch doesn't exist anymore, so we need to write some
        scaffolding code to replace it
      - the way test sizes are generated has changed, and we need to restrict
        (in some tests) the cluster size, as our code is not yet ready for
        hundreds of thousands of nodes in a cluster and we run out of stack
        (which could be a bug somewhere by itself, needs investigation)
      - at least with GHC 7, floating point errors make a perfect cluster
        score even bigger, so we need to bump up the max. rounding error
        allowed
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      8e4f6d56
Loading