mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 15:04:42 +08:00
793a102846
* convert Ray to C++ * const correctness
25 lines
421 B
C++
25 lines
421 B
C++
#include "greatest.h"
|
|
|
|
#include "common.h"
|
|
|
|
SUITE(common_tests);
|
|
|
|
TEST sha1_test(void) {
|
|
static char hex[ID_STRING_SIZE];
|
|
UniqueID uid = globally_unique_id();
|
|
ObjectID_to_string((ObjectID) uid, &hex[0], ID_STRING_SIZE);
|
|
PASS();
|
|
}
|
|
|
|
SUITE(common_tests) {
|
|
RUN_TEST(sha1_test);
|
|
}
|
|
|
|
GREATEST_MAIN_DEFS();
|
|
|
|
int main(int argc, char **argv) {
|
|
GREATEST_MAIN_BEGIN();
|
|
RUN_SUITE(common_tests);
|
|
GREATEST_MAIN_END();
|
|
}
|