Release v0.1.5.4 prepare for release
This commit is contained in:
@ -10,6 +10,8 @@
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include <cstdlib>
|
||||
|
||||
static bool extract_paste_id_and_key(const std::string& full_url, std::string& paste_id, std::string& key) {
|
||||
@ -143,6 +145,9 @@ int main() {
|
||||
free_string(delete_token);
|
||||
free_string(fetched);
|
||||
|
||||
// Respect server rate limit between submissions
|
||||
std::this_thread::sleep_for(std::chrono::seconds(12));
|
||||
|
||||
// Test 2: Syntax highlighting format
|
||||
std::cout << "[test] 2. Testing syntax highlighting format..." << std::endl;
|
||||
const char* code_content = R"(
|
||||
@ -206,6 +211,9 @@ int main() {
|
||||
free_string(code_delete_token);
|
||||
free_string(code_fetched);
|
||||
|
||||
// Pause again before next submission
|
||||
std::this_thread::sleep_for(std::chrono::seconds(12));
|
||||
|
||||
// Test 3: Markdown format
|
||||
std::cout << "[test] 3. Testing markdown format..." << std::endl;
|
||||
const char* markdown_content = R"(
|
||||
@ -274,6 +282,9 @@ std::cout << x << std::endl;
|
||||
free_string(markdown_delete_token);
|
||||
free_string(markdown_fetched);
|
||||
|
||||
// Pause again before next submission
|
||||
std::this_thread::sleep_for(std::chrono::seconds(12));
|
||||
|
||||
// Test 4: File upload via API
|
||||
{
|
||||
std::cout << "[test] 4. Testing file upload..." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user