1
0
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:
3timeslazy
2018-11-05 22:48:00 +03:00
committed by Tim Voronov
parent a88ac6a647
commit 10d0de088b
13 changed files with 78 additions and 0 deletions

View File

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