A very-simple-subset-of-haskell fuzzer
Project description
A very-simple-subset-of-haskell fuzzer. With the ability to generate lexical tokens as well as plain code.
```
module Generated (function0,function1,function2) where
function0 :: Int -> Bool -> Bool -> Bool -> Bool -> Int -> Int
function0 a b c d e f = (function1 (2 /= 7) False False)
function1 :: Bool -> Bool -> Bool -> Int
function1 a b c = (8 * 0)
function2 :: Bool -> Int
function2 a = 1
```
it's available on pip by `pip install huzzer`
## Setup
Make sure you have python3 on your machine (`which python3` should print a path to it).
Set up a `virtualenv` with `virtualenv -p \`which python3\` env`
Activate the environment with `source env/bin/activate`
Install requirements `pip install -r requirements.txt`
Then you should be good to go. To leave the virtualenv, type `deactivate`
## Testing
To run all of the tests, run `nosetests`.
To run larger acceptance tests (against the ghc compiler), you will need `ghc` and `parallel` installed.
run `./large_acceptance_test.sh <number of tests>`
## TODOs
* multiple definitions for functions
```
module Generated (function0,function1,function2) where
function0 :: Int -> Bool -> Bool -> Bool -> Bool -> Int -> Int
function0 a b c d e f = (function1 (2 /= 7) False False)
function1 :: Bool -> Bool -> Bool -> Int
function1 a b c = (8 * 0)
function2 :: Bool -> Int
function2 a = 1
```
it's available on pip by `pip install huzzer`
## Setup
Make sure you have python3 on your machine (`which python3` should print a path to it).
Set up a `virtualenv` with `virtualenv -p \`which python3\` env`
Activate the environment with `source env/bin/activate`
Install requirements `pip install -r requirements.txt`
Then you should be good to go. To leave the virtualenv, type `deactivate`
## Testing
To run all of the tests, run `nosetests`.
To run larger acceptance tests (against the ghc compiler), you will need `ghc` and `parallel` installed.
run `./large_acceptance_test.sh <number of tests>`
## TODOs
* multiple definitions for functions
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
huzzer-0.0.4.tar.gz
(16.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
huzzer-0.0.4-py3-none-any.whl
(20.6 kB
view details)
File details
Details for the file huzzer-0.0.4.tar.gz.
File metadata
- Download URL: huzzer-0.0.4.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc6d0e2837c31b58667ecdeb95d72a1cfbdb249ef4026f69cd70f40b43656c5
|
|
| MD5 |
2ae18be978622ed1c7b12c1b1888af13
|
|
| BLAKE2b-256 |
e64f8b442f6aba415035f536d9ce44604695bed62bcb32b2be4b623e3f74f1d1
|
File details
Details for the file huzzer-0.0.4-py3-none-any.whl.
File metadata
- Download URL: huzzer-0.0.4-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9fdb1a8a09544ab3d9315f2c625560983bc484d13874aa5db1a7236d0e1684f
|
|
| MD5 |
5964ffdf849cef417bb982c4fe59e895
|
|
| BLAKE2b-256 |
e0375b6bd2f824414d149d3193c28c09c2a806a731e8b0f521285d9970738226
|