taktinc / fake Goto Github PK
View Code? Open in Web Editor NEWGenerate realistic looking fake data
License: BSD 3-Clause "New" or "Revised" License
Generate realistic looking fake data
License: BSD 3-Clause "New" or "Revised" License
[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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.