aboutsummaryrefslogtreecommitdiff
path: root/option
diff options
context:
space:
mode:
Diffstat (limited to 'option')
-rw-r--r--option/option_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/option/option_test.go b/option/option_test.go
index 80e8e84..0fa255f 100644
--- a/option/option_test.go
+++ b/option/option_test.go
@@ -15,6 +15,11 @@ import (
. "github.com/majewsky/gg/internal/test"
)
+func TestZeroValue(t *testing.T) {
+ var zero Option[string]
+ AssertEqual(t, zero, None[string]())
+}
+
////////////////////////////////////////////////////////////////////////////////
// core API (methods sorted by name)