nostr_core_lib/tests/init_only_test.c

23 lines
579 B
C

#include <stdio.h>
#include "../nostr_core/nostr_core.h"
int main(void) {
printf("=== Testing library initialization only ===\n");
printf("About to call nostr_init()...\n");
int result = nostr_init();
if (result != NOSTR_SUCCESS) {
printf("ERROR: Failed to initialize NOSTR library: %s\n", nostr_strerror(result));
return 1;
}
printf("✅ Library initialized successfully!\n");
printf("About to call nostr_cleanup()...\n");
nostr_cleanup();
printf("✅ Library cleanup completed!\n");
return 0;
}