38 #include <gtest/gtest.h>
54 TEST(CyclesTest, PrefixIncrement)
63 TEST(CyclesTest, PrefixDecrement)
71 TEST(CyclesTest, InPlaceAddition)
79 TEST(CyclesTest, GreaterThanLessThan)
87 TEST(CyclesTest, AddCycles)
91 Cycles added = cycles_1 + cycles_2;
95 TEST(CyclesTest, SubtractCycles)
99 Cycles subtracted = cycles_1 - cycles_2;
106 Cycles cycles_shifted = cycles >> 5;
113 Cycles cycles_shifted = cycles << 20;
120 std::ostringstream
ss;
121 ss <<
"The number of cycles is: " << cycles << std::endl;
122 EXPECT_EQ(
"The number of cycles is: 56\n",
ss.str());
129 TEST(MicroPCTest, CheckMicroPCRomBit)
134 TEST(MicroPCTest, RomMicroPCTest)
139 TEST(MicroPCTest, NormalMicroPCTest)
144 TEST(MicroPCTest, IsRomMicroPCTest)
149 TEST(MicroPCTest, IsNotRomMicroPCTest)
174 TEST(TypesTest, floatsToBitsDoubleInput)
176 double val = 0.84023;
180 TEST(TypesTest, floatsToBitsFloatInput)