// Copyright 2020 Misha Brukman
// SPDX-License-Identifier: Apache-2.0
// https://misha.brukman.net/blog/2020/03/oo-style-testing-in-go/

package oo1

import (
	"testing"

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

func TestOdd(t *testing.T) {
	m := new(MyImpl)
	assert.True(t, m.IsOdd(35))
	assert.False(t, m.IsOdd(64))
}

func TestEven(t *testing.T) {
	m := new(MyImpl)
	assert.False(t, m.IsEven(35))
	assert.True(t, m.IsEven(64))
}
