Refuse a calc over digits(0) or a repeat of 0, name an option's wrong kind as JSON does, type the name scope kinds, and compile only from a jsonvalue.Value
This commit is contained in:
@@ -20,7 +20,7 @@ func walk(t *testing.T, src Source) ([]handed, error) {
|
||||
t.Helper()
|
||||
var got []handed
|
||||
err := src.Walk(func(c Category) error {
|
||||
got = append(got, handed{c.Folders, c.Name, c.JSON})
|
||||
got = append(got, handed{c.Folders, c.Name, c.JSON.Any()})
|
||||
return nil
|
||||
})
|
||||
return got, err
|
||||
@@ -133,7 +133,7 @@ func TestLoadHandsOneCategoryAndItsRows(t *testing.T) {
|
||||
var got handed
|
||||
var rows string
|
||||
err := src.Load([]string{"sub"}, "t", func(c Category) error {
|
||||
got = handed{c.Folders, c.Name, c.JSON}
|
||||
got = handed{c.Folders, c.Name, c.JSON.Any()}
|
||||
var err error
|
||||
rows, err = c.ReadRows("t.tsv")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user