test: improve test for crypto padding
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, crypto
Description of change
Replace assert.equal with assert.strictEqual and use RegExp in assert.throws