From 94325d457deeb41904ae852c57a56cc64474c203 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 4 Jan 2025 16:20:21 +0100 Subject: add test for zero value --- option/option_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'option/option_test.go') 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) -- cgit v1.2.3