Remove use of string rather than straddle OTP version
string functions were used in unit tetss only, and were replaceable with io_lib:format
This commit is contained in:
parent
90574122c9
commit
9ca6b499e1
7 changed files with 30 additions and 78 deletions
|
@ -1401,9 +1401,9 @@ compact_journal_testto(WRP, ExpectedFiles) ->
|
|||
5000),
|
||||
timer:sleep(1000),
|
||||
CompactedManifest2 = ink_getmanifest(Ink1),
|
||||
{ok, PrefixTest} = re:compile(?COMPACT_FP),
|
||||
lists:foreach(fun({_SQN, FN, _P, _LK}) ->
|
||||
?assertMatch(0, leveled_util:string_str(
|
||||
FN, ?COMPACT_FP))
|
||||
nomatch = re:run(FN, PrefixTest)
|
||||
end,
|
||||
CompactedManifest2),
|
||||
?assertMatch(2, length(CompactedManifest2)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue