From 2a45189c8276ccb79f4400ce69476d2c48ecf491 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 2 Nov 2023 08:21:26 -0700 Subject: [PATCH] correction --- README.md | 2 +- nullable_filter_test.go | 2 +- nullable_get_test.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b01ea64..37cbb8a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ import "sourcecode.social/reiver/go-nul" // -var op nul.Optional[string] // the default value is nothing. +var op nul.Nullable[string] // the default value is nothing. // ... diff --git a/nullable_filter_test.go b/nullable_filter_test.go index 8af3712..c85af62 100644 --- a/nullable_filter_test.go +++ b/nullable_filter_test.go @@ -6,7 +6,7 @@ import ( "sourcecode.social/reiver/go-nul" ) -func TestOptional_Filter_int(t *testing.T) { +func TestNullable_Filter_int(t *testing.T) { tests := []struct{ Nullable nul.Nullable[int] diff --git a/nullable_get_test.go b/nullable_get_test.go index d555a5d..b036145 100644 --- a/nullable_get_test.go +++ b/nullable_get_test.go @@ -6,7 +6,7 @@ import ( "sourcecode.social/reiver/go-nul" ) -func TestOptional_Get_string(t *testing.T) { +func TestNullable_Get_string(t *testing.T) { tests := []struct{ Nullable nul.Nullable[string] @@ -77,7 +77,7 @@ func TestOptional_Get_string(t *testing.T) { } } -func TestOptional_Get_int8(t *testing.T) { +func TestNullable_Get_int8(t *testing.T) { tests := []struct{ Nullable nul.Nullable[int8] @@ -303,7 +303,7 @@ func TestOptional_Get_int8(t *testing.T) { } } -func TestOptional_Get_uint8(t *testing.T) { +func TestNullable_Get_uint8(t *testing.T) { tests := []struct{ Nullable nul.Nullable[uint8]