Explorar el Código

rf: 测试代码修改

master
SisMaker hace 4 años
padre
commit
52480d5eca
Se han modificado 1 ficheros con 4 adiciones y 6 borrados
  1. +4
    -6
      src/testCase/DsTestSimple/utSMapsDs.erl

+ 4
- 6
src/testCase/DsTestSimple/utSMapsDs.erl Ver fichero

@ -31,14 +31,12 @@ insert(Num, Ds) ->
read(0, Ds, _V) ->
Ds;
read(Num, Ds, _V) ->
V =
case Ds of
case Ds of
#{Num := Value} ->
Value;
read(Num - 1, Ds, Value);
_ ->
undefined
end,
read(Num - 1, Ds, V).
read(Num - 1, Ds, undefined)
end.
update(0, Ds) ->
Ds;

Cargando…
Cancelar
Guardar