Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Fuzzer for mathematical expressions #54

Open
AlekSi opened this issue Dec 13, 2018 · 0 comments
Open

Fuzzer for mathematical expressions #54

AlekSi opened this issue Dec 13, 2018 · 0 comments
Labels
feature New feature or improvement help wanted Small and self-contained issues for new contributors

Comments

@AlekSi
Copy link
Member

AlekSi commented Dec 13, 2018

  1. Generate mathematical expression with integers and floats, and several operators and braces. For example:
42 + 7 / (13.0)
  1. Generate and run a small Go program to get an expression result or error. For example:
package main

import "fmt"

func main() {
    x := 42 + 7 / (13.0)
    fmt.Println(x)
}
  1. If there is no error, feed the same expression to Gosh and compare results.

For the first step, we may use go-fuzz with some initial corpus. Later we could create a custom code generator just for mathematical expressions. See also: #40.

@AlekSi AlekSi added help wanted Small and self-contained issues for new contributors feature New feature or improvement labels Dec 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or improvement help wanted Small and self-contained issues for new contributors
Projects
None yet
Development

No branches or pull requests

1 participant