package sample

import (
	"errors"
	"testing"

	"github.com/stretchr/testify/require"
)

var errNegative = errors.New("negative")

func compute(value int) (int, error) {
	if value < 0 {
		return 0, errNegative
	}
	return value + 1, nil
}

func TestNoAssert(t *testing.T) {
	_, _ = compute(1)
}

func TestHappyPathOnly(t *testing.T) {
	got, err := compute(1)
	require.NoError(t, err)
	require.Equal(t, 2, got)
}

func TestPlaceholder(t *testing.T) {
	t.Skip("TODO: implement")
}