mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-05 00:49:00 +02:00
Added one more test case into pkg/stdlib/datetime (#161)
This commit is contained in:
@ -25,6 +25,12 @@ func TestDateSecond(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 5th second",
|
||||
Expected: values.NewInt(5),
|
||||
|
Reference in New Issue
Block a user