We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d2b72 commit e7e1a32Copy full SHA for e7e1a32
eval_fuzz_test.go
@@ -0,0 +1,20 @@
1
+//go:build go1.18
2
+// +build go1.18
3
+
4
+package expressions_test
5
6
+import (
7
+ "math/big"
8
+ "testing"
9
10
+ "github.com/zephyrtronium/expressions"
11
+)
12
13
+func FuzzEval(f *testing.F) {
14
+ f.Add("x")
15
+ f.Add("y")
16
+ f.Add("1×2")
17
+ f.Fuzz(func(t *testing.T, s string) {
18
+ expressions.EvalString(s, expressions.SetVar("x", new(big.Float)))
19
+ })
20
+}
go.mod
@@ -1,5 +1,5 @@
module github.com/zephyrtronium/expressions
-go 1.16
+go 1.18
require github.com/zephyrtronium/bigfloat v0.0.0-20200813004907-069b2a5e25b7
0 commit comments