浏览代码

ft: 测试代码添加

master
lijie 2 年前
父节点
当前提交
61ac8ef2bb
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. +27
    -0
      src/testCase/utTpfm.erl

+ 27
- 0
src/testCase/utTpfm.erl 查看文件

@ -649,4 +649,31 @@ loop() ->
loop()
end.
td1(List) ->
[{One, One, One, One} || One <- List],
ok.
td2(List) ->
[{One, One, One, One} || One <- List].
forL(0, L) ->
ok;
forL(Index, L) ->
lists:nth(Index, L),
forL(Index - 1, L).
forL(0, _L, _) ->
ok;
forL(Index, L, _) ->
V = lists:nth(Index, L),
forL(Index - 1, L, V).
forB(0, _B, _) ->
ok;
forB(Index, B, _) ->
BIndex = Index * 3,
<<_:BIndex/bits, V:3, _/bits>> = B,
forB(Index - 1, B, V).

正在加载...
取消
保存