Add test coverage to core

This commit is contained in:
2022-10-30 01:16:31 -04:00
parent 454b42c2d7
commit b542fcf901
4 changed files with 77 additions and 0 deletions

19
core/pointers_test.go Normal file
View File

@@ -0,0 +1,19 @@
package core
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestBool(t *testing.T) {
assert := assert.New(t)
// Test const
assert.True(*Bool(true))
// Test var
sample := true
assert.True(*Bool(sample))
}