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
### Distribution
make sure to remove older versions of the package
```
python setup.py sdist bdist_wheel
twine upload dist/*
```
```
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
### Distribution
make sure to remove older versions of the package
```
python setup.py sdist bdist_wheel
twine upload dist/*
```
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.1.1.tar.gz
(16.9 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.1.1-py3-none-any.whl
(20.8 kB
view details)
File details
Details for the file huzzer-0.1.1.tar.gz.
File metadata
- Download URL: huzzer-0.1.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e9344c01ee047c92158ad86b3b2e9df513f9df8bd06485ad2056cd90b035999
|
|
| MD5 |
b20db6d64b15f97b68b8f80775a378d0
|
|
| BLAKE2b-256 |
11977741839bfeaae7bf65108c8d4b44e38976137f39bbf0c4f98ba249f89c57
|
File details
Details for the file huzzer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: huzzer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5d8edee2f475d93c4bbbea0d1e6799b23900a6647c6f4ce69aab336acaac350
|
|
| MD5 |
6714dff32c359a59a674f422b9b27ed3
|
|
| BLAKE2b-256 |
ea020b3425026bdbfd8fc022e1c9a68ae8615386649761efa4517da462291059
|