summaryrefslogtreecommitdiff
path: root/optional/main_test.go
blob: 2beb52ab2914f9098aeaca820c11e48162db566f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package optional_test

import (
	"testing"

	"xengineering.eu/optional-go/optional"
)

func TestDefault(t *testing.T) {
	var o optional.Optional[bool]

	if o.Exists {
		t.Fatal("Empty optional claims to exist.")
	}
}