shad-go/tools/testtool/commands/deadlines_test.go
Fedor Korotkiy 6a83a4f1fc Task grading
2020-02-13 02:10:17 +03:00

17 lines
308 B
Go

package commands
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDeadlines(t *testing.T) {
d, err := loadDeadlines("../../../.deadlines.yml")
require.NoError(t, err)
require.NotEmpty(t, d)
_, sum := d.FindTask("sum")
require.NotNil(t, sum)
require.Equal(t, "sum", sum.Name)
}