test: add basic cctest for base64.h
This commit adds C++ tests for base64_encode()
and base64_decode()
functions defined in base64.h
. The functionality is already being
tested indirectly in JavaScript tests for Buffer, but it won't hurt to
test the low-level functions too, especially given that they aren't only
used in the internal Buffer implementation, Chrome inspector protocol
support relies upon them too.
Refs: https://github.com/nodejs/node/pull/12146#issuecomment-291559685
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