You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 line
797 B

  1. -module(acTest).
  2. -include_lib("eunit/include/eunit.hrl").
  3. -compile([export_all, nowarn_export_all]).
  4. test1() ->
  5. acTc:ts(1000000, acsTree, goto, [63870]).
  6. test20() ->
  7. acTc:ts(1000000, eAcs, matchSw, [<<"fdsfads拉法叶舰fds淫秽ffdsfdsffdddd"/utf8>>]).
  8. test21() ->
  9. acTc:ts(1000000, eAcs, replaceSw, [<<"fdsfads拉法叶舰fds淫秽ffdsfdsffdddd"/utf8>>]).
  10. test22() ->
  11. acTc:ts(1000000, eAcs, isHasSw, [<<"fdsfads拉法叶舰fds淫秽ffdsfdsffdddd"/utf8>>]).
  12. test3(Cnt, BinStr) ->
  13. acTc:ts(Cnt, eAcs, matchSw, [BinStr]).
  14. test31(Cnt, BinStr) ->
  15. acTc:ts(Cnt, eAcs, replaceSw, [BinStr]).
  16. test4(Cnt, FileName) ->
  17. {ok, Data} = file:read_file(FileName),
  18. test3(Cnt, Data).
  19. test41(Cnt, FileName) ->
  20. {ok, Data} = file:read_file(FileName),
  21. test31(Cnt, Data).