You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
348 B

#include <gtest/gtest.h>
#include "AllocationTestHarness.h"
#include "osi/include/osi.h"
class RandTest : public AllocationTestHarness {};
TEST_F(RandTest, test_rand) {
// We can't guarantee any distribution
// We'd like it to not crash though.
for (int i = 0; i < 10; i++) {
int x;
x = osi_rand();
EXPECT_TRUE(x >= 0);
}
}