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