From 263a2ed461bee498215259e5e3288acb561ec536 Mon Sep 17 00:00:00 2001 From: lijie <1713699517@qq.com> Date: Thu, 6 Apr 2023 17:57:37 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/testCase/utTpfm.erl | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/testCase/utTpfm.erl b/src/testCase/utTpfm.erl index 661ed9f..dea77bd 100644 --- a/src/testCase/utTpfm.erl +++ b/src/testCase/utTpfm.erl @@ -675,5 +675,18 @@ forB(Index, B, _) -> <<_:BIndex/bits, V:3, _/bits>> = B, forB(Index - 1, B, V). - - +delL(L1, L2) -> + L1 -- L2. + +delM(M1, M2) -> + doDelM(maps:iterator(M2), M1). + +doDelM(Iterator, M1) -> + case maps:next(Iterator) of + {K, _V, none} -> + maps:remove(K, M1); + {K, _V, NextI} -> + doDelM(NextI, maps:remove(K, M1)); + _ -> + M1 + end. \ No newline at end of file