Giter Site home page Giter Site logo

fake's People

Contributors

mightybyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ramirez7

fake's Issues

Fake.Cover Person test is failing

[nix-shell:~/work/fake]$ cabal test
Preprocessing test suite 'spec' for fake-0.1.0.0...
[1 of 8] Compiling Fake.Types       ( src/Fake/Types.hs, dist/build/spec/spec-tmp/Fake/Types.o )
[2 of 8] Compiling Fake.Provider.Lang ( src/Fake/Provider/Lang.hs, dist/build/spec/spec-tmp/Fake/Provider/Lang.o )
[3 of 8] Compiling Fake.Cover       ( src/Fake/Cover.hs, dist/build/spec/spec-tmp/Fake/Cover.o )
[4 of 8] Compiling Fake.Combinators ( src/Fake/Combinators.hs, dist/build/spec/spec-tmp/Fake/Combinators.o )
[5 of 8] Compiling Fake.Provider.Lang.EN_US ( src/Fake/Provider/Lang/EN_US.hs, dist/build/spec/spec-tmp/Fake/Provider/Lang/EN_US.o )
[6 of 8] Compiling Fake.Provider.Person.EN_US ( src/Fake/Provider/Person/EN_US.hs, dist/build/spec/spec-tmp/Fake/Provider/Person/EN_US.o )
[7 of 8] Compiling Fake.Class       ( src/Fake/Class.hs, dist/build/spec/spec-tmp/Fake/Class.o )
[8 of 8] Compiling Main             ( test/Main.hs, dist/build/spec/spec-tmp/Main.o )

test/Main.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Fake.Provider.Lang.EN_US’ is redundant
      except perhaps to import instances from ‘Fake.Provider.Lang.EN_US’
    To import instances alone, use: import Fake.Provider.Lang.EN_US()
Linking dist/build/spec/spec ...
Running 1 test suites...
Test suite spec: RUNNING...

Fake.Cover
  Maybe Int
  Either Int Char
  (Maybe Int, ThreePhonetic)
  (Either ThreePhonetic Four)
  Person FAILED [1]

Failures:

  test/Main.hs:52: 
  1) Fake.Cover Person
       expected: [Person {personFirstName = "Lillie", personLastName = "Russell", personBirthdate = 1958-10-12, personSSN = Nothing},Person {personFirstName = "Tim", personLastName = "Brooks", personBirthdate = 1966-07-21, personSSN = Just "123-45-6789"}]
        but got: [Person {personFirstName = "Maeve", personLastName = "Russell", personBirthdate = 1958-10-12, personSSN = Nothing},Person {personFirstName = "Lavern", personLastName = "Brooks", personBirthdate = 1966-07-21, personSSN = Just "123-45-6789"}]

Randomized with seed 1116729429

Finished in 0.0050 seconds
5 examples, 1 failure
Test suite spec: FAIL
Test suite logged to: dist/test/fake-0.1.0.0-spec.log
0 of 1 test suites (0 of 1 test cases) passed.

Looks like the values were hard-coded based on a previous run of the RNG? Could it be system differences (I built on OSX within nix-shell) or is it actually wrong?

Fake.Provider.Person.EN_US struggles to compile w/profiling [OSX]

clang sits at 100% CPU and steadily grows in memory use (2GB up to 4GB and higher).

It seems a little nondeterministic though. I restart the build and sometimes it goes through without hanging like this.

The module has a bunch of very large list literals, which I think are the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.