i2pd/tests
Daniel Bermond 37fd4b4422
tests: fix test-base-64
test-base-64 was not updated after the following commits:

93cc810f29
bbf5c1655a

This leads to errors like:

In file included from /usr/include/c++/15.1.1/cassert:46,
                 from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:1:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp: In function ‘int main()’:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:28: error: too many arguments to function ‘std::string i2p::data::ByteStreamToBase64(const uint8_t*, size_t)’
   14 |   assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
      |          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~

and:

In file included from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:4:
/build/i2pd/src/i2pd-2.57.0/build/../libi2pd/Base.h:21:21: note: declared here
   21 |         std::string ByteStreamToBase64 (const uint8_t * InBuffer, size_t InCount);
      |                     ^~~~~~~~~~~~~~~~~~
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:47: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
   14 |   assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
      |                            |                     |
      |                            |                     int
      |                            std::string {aka std::__cxx11::basic_string<char>}

among others.
2025-06-02 23:28:51 -03:00
..
.gitignore Update tests and corresponding makefiles (#1862) 2023-01-30 04:17:49 +03:00
CMakeLists.txt pass iv to AES Encrypt/Decrypt directly. aes-test added 2024-12-08 11:08:17 -05:00
Makefile pass iv to AES Encrypt/Decrypt directly. aes-test added 2024-12-08 11:08:17 -05:00
test-aeadchacha20poly1305.cpp use AEADChaCha20Poly1305Encryptor and AEADChaCha20Poly1305Decryptor for test 2025-01-02 18:30:16 -05:00
test-aes.cpp pass iv to AES Encrypt/Decrypt directly. aes-test added 2024-12-08 11:08:17 -05:00
test-base-64.cpp tests: fix test-base-64 2025-06-02 23:28:51 -03:00
test-blinding.cpp Update tests and corresponding makefiles (#1862) 2023-01-30 04:17:49 +03:00
test-eddsa.cpp test-eddsa added 2023-12-18 09:32:12 -05:00
test-elligator.cpp Update tests and corresponding makefiles (#1862) 2023-01-30 04:17:49 +03:00
test-gost-sig.cpp key blinding test 2019-05-31 11:57:16 -04:00
test-gost.cpp restructure build to separate the 3 main components into 3 subdirectories 2017-04-21 06:33:45 -04:00
test-http-merge_chunked.cpp Add CMake support for tests 2022-11-26 06:32:56 +08:00
test-http-req.cpp fixed test-http-req 2023-01-28 17:18:54 -05:00
test-http-res.cpp Add CMake support for tests 2022-11-26 06:32:56 +08:00
test-http-url.cpp [http] fix query detection, addresshelper processing, update tests 2023-02-14 18:51:14 +00:00
test-http-url_decode.cpp Add CMake support for tests 2022-11-26 06:32:56 +08:00