tests

package
v0.0.0-...-b38e9c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test struct {
	Number      int        `json:"number"`
	Group       string     `json:"group"`
	Title       string     `json:"title"`
	Description string     `json:"description"`
	TestCases   []TestCase `json:"test-cases"`
}

func GetAllTests

func GetAllTests() []Test

Get all the tests

func GetTestByNumber

func GetTestByNumber(num int) (Test, error)

Get a single test

type TestCase

type TestCase struct {
	Number         int      `json:"number"`
	Inputs         []string `json:"inputs"`
	ExpectedOutput []string `json:"expected-output"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL