mirror of
https://github.com/chaisql/chai.git
synced 2025-10-12 19:10:08 +08:00
Add functions packages support (#419)
* Add packaged functions support * Add tests for math.floor func * Export FunctionsTable * Extract func stuff into its own package * Rename stuff * Fix tests * Move doc package to cmd/genji * Adjust naming, typos
This commit is contained in:

committed by
GitHub

parent
c0861ed2c5
commit
e556fc3048
12
internal/expr/functions/math_test.go
Normal file
12
internal/expr/functions/math_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package functions_test
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/genjidb/genji/internal/testutil"
|
||||
)
|
||||
|
||||
func TestMathFunctions(t *testing.T) {
|
||||
testutil.ExprRunner(t, filepath.Join("testdata", "math_functions.sql"))
|
||||
}
|
Reference in New Issue
Block a user