tests: OCD fixes lol

sorry
BodgeMaster-unfinished
BodgeMaster 2022-08-02 01:04:45 +02:00
parent 4582c3e595
commit 1308327fae
2 changed files with 3 additions and 7 deletions

View File

@ -28,7 +28,7 @@ int main(){
// java-style_unicode: 119 bytes, 85 characters ??
std::cout << "################################################################################" << std::endl;
std::cout << "Import String Tests" << std::endl;
std::cout << "Javacompat tests" << std::endl;
std::cout << "################################################################################" << std::endl;
char* nextChar = new char;
@ -78,10 +78,6 @@ int main(){
ASSERT(normalString == importedString);
std::cout << "Passed Import Java string test." << std::endl;
std::cout << "################################################################################" << std::endl;
std::cout << "Export String Tests" << std::endl;
std::cout << "################################################################################" << std::endl;
//using normalString from when we read the file earlier
//there's no need to read the same file twice

View File

@ -6,9 +6,9 @@
#include "../lib/javacompat.h++"
int main() {
std::cout << "=================================" << std::endl;
std::cout << "================================================================================" << std::endl;
std::cout << "NBT write string helper failure mode test" << std::endl;
std::cout << "=================================" << std::endl;
std::cout << "================================================================================" << std::endl;
std::cout << "This is supposed to abort." << std::endl;
std::vector<uint8_t>* exportedString = new std::vector<uint8_t>();
std::string overrunString = std::string(0xFFFFF, '.');