test: use repeat() instead of new Array().join()
The usage of new Array(length + 1).join(str)
is strange.
Change to str.repeat(length)
is more clearly.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test