
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Successful in 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
23 lines
656 B
C++
23 lines
656 B
C++
|
|
#include <iostream>
|
|
#include "generated/_test1.hpp"
|
|
#include "generated/_original.hpp"
|
|
|
|
int main() {
|
|
std::cout << "Testing file recreation..." << std::endl;
|
|
|
|
// Test single file recreation
|
|
std::cout << "Recreating single file..." << std::endl;
|
|
if (recreate_test1::recreate_file("recreated")) {
|
|
std::cout << "Single file recreation returned true" << std::endl;
|
|
}
|
|
|
|
// Test directory recreation
|
|
std::cout << "Recreating directory tree..." << std::endl;
|
|
if (recreate_original::recreate_tree("recreated/tree")) {
|
|
std::cout << "Directory recreation returned true" << std::endl;
|
|
}
|
|
|
|
return 0;
|
|
}
|