25 #define NUMBER_OF_CONVERSION_TESTS 100
28 std::mt19937 randomGenerator(3);
29 std::uniform_int_distribution<RamDomain> dist(-100, 100);
32 RamDomain randomNumber = dist(randomGenerator);
43 std::mt19937 randomGenerator(3);
44 std::uniform_int_distribution<RamUnsigned> dist(0, 1000);
50 EXPECT_EQ(randomNumber, ramBitCast<RamUnsigned>(ramBitCast<RamFloat>(randomNumber)));
53 EXPECT_EQ(randomNumber, ramBitCast<RamUnsigned>(ramBitCast<RamDomain>(randomNumber)));
58 std::mt19937 randomGenerator(3);
59 std::uniform_real_distribution<RamFloat> dist(-100.0, 100.0);
62 RamFloat randomNumber = dist(randomGenerator);
65 EXPECT_EQ(randomNumber, ramBitCast<RamFloat>(ramBitCast<RamDomain>(randomNumber)));
68 EXPECT_EQ(randomNumber, ramBitCast<RamFloat>(ramBitCast<RamUnsigned>(randomNumber)));