Fix broken value expr tests
This commit is contained in:
@@ -230,7 +230,7 @@ func Test_validator_customExpr(t *testing.T) {
|
||||
)
|
||||
|
||||
f.Expressions.Validators = []types.ModuleFieldValidator{
|
||||
{Test: "value > 5", Error: "value is lower than 5"},
|
||||
{Test: "value < 5", Error: "value is lower than 5"},
|
||||
}
|
||||
m.Fields = append(m.Fields, f)
|
||||
r.Values = r.Values.Replace("num", "1")
|
||||
|
||||
@@ -42,10 +42,10 @@ func Example_parseISODate() {
|
||||
}
|
||||
|
||||
func Example_parseDate() {
|
||||
eval(`date("1993-02-02 06:00:00+00:00")`, nil)
|
||||
eval(`date("1993-02-02 06:00:00+01:10")`, nil)
|
||||
|
||||
// output:
|
||||
// 1993-02-02 06:00:00 +0000 +0000
|
||||
// 1993-02-02 06:00:00 +0110 +0110
|
||||
}
|
||||
|
||||
func Example_parseDuration() {
|
||||
|
||||
Reference in New Issue
Block a user