mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-17 21:18:37 +02:00
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
22 lines
448 B
Go
22 lines
448 B
Go
package testing
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
"github.com/MontFerret/ferret/pkg/stdlib/testing/base"
|
|
)
|
|
|
|
// FAIL returns an error.
|
|
// @param {String} [message] - Message to display on error.
|
|
var Fail = base.Assertion{
|
|
DefaultMessage: func(_ []core.Value) string {
|
|
return "not fail"
|
|
},
|
|
MinArgs: 0,
|
|
MaxArgs: 1,
|
|
Fn: func(ctx context.Context, args []core.Value) (bool, error) {
|
|
return false, nil
|
|
},
|
|
}
|