fn: fix UnwrapOrFail semantics

This commit is contained in:
Keagan McClelland committed 2024-11-06 15:55:18 -07:00
1 parent 4778b146cc
commit 7a7f3bdb2c
4 files changed
+35 -14

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
package fn
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestResultUnwrapOrFail(t *testing.T) {
require.Equal(t, Ok(1).UnwrapOrFail(t), 1)
}