summaryrefslogtreecommitdiff
path: root/tests/fstar/betree/Primitives.fst
diff options
context:
space:
mode:
authorSon Ho2024-04-25 16:28:30 +0200
committerSon Ho2024-04-25 16:28:30 +0200
commit036756d6bddbcf9bc936489779ed36c7e4d22d14 (patch)
tree01ab1e2e5d1bbbbceedb6683d0826f05bd0a5720 /tests/fstar/betree/Primitives.fst
parenteb5b2e76de6e2c6780b9817c1424777276ea5e00 (diff)
Regenerate and fix the tests
Diffstat (limited to 'tests/fstar/betree/Primitives.fst')
-rw-r--r--tests/fstar/betree/Primitives.fst6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fstar/betree/Primitives.fst b/tests/fstar/betree/Primitives.fst
index c7c9f9db..9951ccc3 100644
--- a/tests/fstar/betree/Primitives.fst
+++ b/tests/fstar/betree/Primitives.fst
@@ -540,6 +540,12 @@ let core_clone_CloneI128 : core_clone_Clone i128 = {
clone = fun x -> Ok (core_clone_impls_CloneI128_clone x)
}
+(** [core::option::{core::option::Option<T>}::unwrap] *)
+let core_option_Option_unwrap (t : Type0) (x : option t) : result t =
+ match x with
+ | None -> Fail Failure
+ | Some x -> Ok x
+
(*** core::ops *)
// Trait declaration: [core::ops::index::Index]