First commit on a late git install
This commit is contained in:
19
tests/simple_init_test.c
Normal file
19
tests/simple_init_test.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include "../nostr_core/nostr_core.h"
|
||||
|
||||
int main(void) {
|
||||
printf("Testing basic library initialization...\n");
|
||||
|
||||
int result = nostr_init();
|
||||
if (result != NOSTR_SUCCESS) {
|
||||
printf("FAILED: nostr_init() returned %d\n", result);
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("SUCCESS: Library initialized\n");
|
||||
|
||||
nostr_cleanup();
|
||||
printf("SUCCESS: Library cleaned up\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user