fn: fix UnwrapOrFail semantics
This commit is contained in:
4 files changed
+35
-14
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user