1 2 #define TEST_NAME "sodium_version" 3 #include "cmptest.h" 4 5 int 6 main(void) 7 { 8 printf("%d\n", sodium_version_string() != NULL); 9 printf("%d\n", sodium_library_version_major() > 0); 10 printf("%d\n", sodium_library_version_minor() >= 0); 11 #ifdef SODIUM_LIBRARY_MINIMAL 12 assert(sodium_library_minimal() == 1); 13 #else 14 assert(sodium_library_minimal() == 0); 15 #endif 16 17 return 0; 18 } 19