mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-15 01:25:00 +02:00
Added one more test case into pkg/stdlib/datetime (#161)
This commit is contained in:
@ -26,6 +26,12 @@ func TestDate(t *testing.T) {
|
||||
Args: []core.Value{},
|
||||
ShouldErr: true,
|
||||
},
|
||||
&testCase{
|
||||
Name: "When argument isn't DateTime",
|
||||
Expected: values.None,
|
||||
Args: []core.Value{values.NewInt(0)},
|
||||
ShouldErr: true,
|
||||
},
|
||||
&testCase{
|
||||
Name: "When incorrect timeStrings",
|
||||
Expected: values.None,
|
||||
|
Reference in New Issue
Block a user