3
0

Fix broken value expr tests

This commit is contained in:
Denis Arh
2020-11-25 21:36:58 +01:00
parent 791b002ed9
commit 01da39a484
2 changed files with 3 additions and 3 deletions

View File

@@ -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")

View File

@@ -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() {