Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 3d8d3bf

Browse files
committed
cleanup native tests
1 parent 0b0dccd commit 3d8d3bf

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

pkg/eval/util/native/form_test.go

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -193,47 +193,3 @@ func TestFormCalling(t *testing.T) {
193193
})
194194
}
195195
}
196-
197-
// func mySingleStringFunc(a string, b int64) (any, error) {
198-
// fmt.Printf("a: %q\n", a)
199-
// fmt.Printf("b: %d\n", b)
200-
// return "i was called!", nil
201-
// }
202-
203-
// func TestFoo(t *testing.T) {
204-
// native, err := newNativeFunction(mySingleStringFunc)
205-
// if err != nil {
206-
// t.Fatalf("Failed to create native func: %v", err)
207-
// }
208-
209-
// args := []ast.Expression{
210-
// ast.Number{Value: 3.14},
211-
// ast.Tuple{
212-
// Expressions: []ast.Expression{
213-
// ast.Identifier{Name: "+"},
214-
// ast.Number{Value: 1},
215-
// ast.Number{Value: 2},
216-
// },
217-
// },
218-
// }
219-
220-
// ctx := types.NewContext(types.Document{}, nil, builtin.AllFunctions, coalescing.NewHumane())
221-
// cachedArgs := convertArgs(args)
222-
223-
// matches, err := native.Match(ctx, cachedArgs)
224-
// if err != nil {
225-
// t.Fatalf("Match() failed: %v", err)
226-
// }
227-
228-
// if !matches {
229-
// fmt.Println("does not match")
230-
// return
231-
// }
232-
233-
// result, err := native.Call(ctx)
234-
// if err != nil {
235-
// t.Fatalf("Call() failed: %v", err)
236-
// }
237-
238-
// fmt.Println(result)
239-
// }

0 commit comments

Comments
 (0)