X-Git-Url: https://git.xandkar.net/?p=hope.git;a=blobdiff_plain;f=test%2Fhope_option_SUITE.erl;fp=test%2Fhope_option_SUITE.erl;h=d2a73a31eda9fdef61c327dfb6955565ecfecc53;hp=af1e12e44d32eb8dbb2bee9ff32bdd7c994654b6;hb=4744fed98ce752dde11c03aeaf8d90983efe5ea6;hpb=0ed4baebe135edc50d24d3613c6ee971f75d8c98 diff --git a/test/hope_option_SUITE.erl b/test/hope_option_SUITE.erl index af1e12e..d2a73a3 100644 --- a/test/hope_option_SUITE.erl +++ b/test/hope_option_SUITE.erl @@ -66,12 +66,12 @@ t_map(_Cfg) -> t_iter(_Cfg) -> Key = key, - Put = fun (Val) -> _ = put(Key, Val), ok end, + Put = fun (Val) -> put(Key, Val) end, Get = fun () -> get(Key) end, Val = foo, - ok = hope_option:iter(none , Put), + {} = hope_option:iter(none , Put), undefined = Get(), - ok = hope_option:iter({some, Val}, Put), + {} = hope_option:iter({some, Val}, Put), Val = Get(). t_of_result(_Cfg) ->