From 97a70ecd3e70d08fae544dc11cca0fb1e06e5a66 Mon Sep 17 00:00:00 2001 From: Zyad Hassan Date: Wed, 24 Apr 2024 09:28:38 -0700 Subject: Update tests --- tests/lean/External/FunsExternal_Template.lean | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/lean/External') diff --git a/tests/lean/External/FunsExternal_Template.lean b/tests/lean/External/FunsExternal_Template.lean index 38151dc9..34b0552a 100644 --- a/tests/lean/External/FunsExternal_Template.lean +++ b/tests/lean/External/FunsExternal_Template.lean @@ -18,9 +18,3 @@ axiom core.mem.swap axiom core.num.nonzero.NonZeroU32.new : U32 → State → Result (State × (Option core.num.nonzero.NonZeroU32)) -/- [core::option::{core::option::Option}::unwrap]: - Source: '/rustc/d59363ad0b6391b7fc5bbb02c9ccf9300eef3753/library/core/src/option.rs', lines 932:4-932:34 - Name pattern: core::option::{core::option::Option<@T>}::unwrap -/ -axiom core.option.Option.unwrap - (T : Type) : Option T → State → Result (State × T) - -- cgit v1.2.3 From 1728dced8484befe35ef61fdf4ccd62b93fbb19d Mon Sep 17 00:00:00 2001 From: Zyad Hassan Date: Wed, 24 Apr 2024 10:01:27 -0700 Subject: Fix a couple of tests --- tests/lean/External/Funs.lean | 3 ++- tests/lean/External/FunsExternal.lean | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/lean/External') diff --git a/tests/lean/External/Funs.lean b/tests/lean/External/Funs.lean index 78e0f95c..3bdd70e3 100644 --- a/tests/lean/External/Funs.lean +++ b/tests/lean/External/Funs.lean @@ -19,7 +19,8 @@ def test_new_non_zero_u32 (x : U32) (st : State) : Result (State × core.num.nonzero.NonZeroU32) := do let (st1, o) ← core.num.nonzero.NonZeroU32.new x st - core.option.Option.unwrap core.num.nonzero.NonZeroU32 o st1 + let o1 ← core.option.Option.unwrap core.num.nonzero.NonZeroU32 o + Result.ok (st1, o1) /- [external::test_vec]: Source: 'src/external.rs', lines 17:0-17:17 -/ diff --git a/tests/lean/External/FunsExternal.lean b/tests/lean/External/FunsExternal.lean index b6efc65f..7adf0922 100644 --- a/tests/lean/External/FunsExternal.lean +++ b/tests/lean/External/FunsExternal.lean @@ -15,8 +15,3 @@ def core.mem.swap def core.num.nonzero.NonZeroU32.new : U32 → State → Result (State × (Option core_num_nonzero_non_zero_u32_t)) := fun _ _ => .fail .panic - -/- [core::option::Option::{0}::unwrap] -/ -def core.option.Option.unwrap - (T : Type) : Option T → State → Result (State × T) := - fun _ _ => .fail .panic -- cgit v1.2.3