[DEV] update the change on 'enum' to 'enum class'
This commit is contained in:
parent
686682c40b
commit
fbb07c9720
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
|
||||
TEST(TestBase, type_int8_8_t) {
|
||||
TEST(TestBase, type::int8_8_t) {
|
||||
audio::int8_8_t typeBase(16, 7);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT8_MIN, 7);
|
||||
@ -25,7 +25,7 @@ TEST(TestBase, type_int8_8_t) {
|
||||
EXPECT_EQ(typeBase.get(), -125);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_int8_16_t) {
|
||||
TEST(TestBase, type::int8_16_t) {
|
||||
audio::int8_16_t typeBase(16, 8);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT16_MIN, 8);
|
||||
@ -41,7 +41,7 @@ TEST(TestBase, type_int8_16_t) {
|
||||
}
|
||||
|
||||
|
||||
TEST(TestBase, type_int16_16_t) {
|
||||
TEST(TestBase, type::int16_16_t) {
|
||||
audio::int16_16_t typeBase(16, 15);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT16_MIN, 15);
|
||||
@ -56,7 +56,7 @@ TEST(TestBase, type_int16_16_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_int16_32_t) {
|
||||
TEST(TestBase, type::int16_32_t) {
|
||||
audio::int16_32_t typeBase(16, 16);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT32_MIN, 16);
|
||||
@ -72,7 +72,7 @@ TEST(TestBase, type_int16_32_t) {
|
||||
}
|
||||
|
||||
|
||||
TEST(TestBase, type_int24_24_t) {
|
||||
TEST(TestBase, type::int24_24_t) {
|
||||
audio::int24_24_t typeBase(16, 23);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT24_MIN, 23);
|
||||
@ -88,7 +88,7 @@ TEST(TestBase, type_int24_24_t) {
|
||||
}
|
||||
|
||||
|
||||
TEST(TestBase, type_int24_32_t) {
|
||||
TEST(TestBase, type::int24_32_t) {
|
||||
audio::int24_32_t typeBase(16, 24);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT32_MIN, 24);
|
||||
@ -103,7 +103,7 @@ TEST(TestBase, type_int24_32_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_int32_32_t) {
|
||||
TEST(TestBase, type::int32_32_t) {
|
||||
audio::int32_32_t typeBase(16, 31);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT32_MIN, 31);
|
||||
@ -118,7 +118,7 @@ TEST(TestBase, type_int32_32_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_int32_64_t) {
|
||||
TEST(TestBase, type::int32_64_t) {
|
||||
audio::int32_64_t typeBase(16, 32);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT64_MIN, 32);
|
||||
@ -129,7 +129,7 @@ TEST(TestBase, type_int32_64_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_int64_64_t) {
|
||||
TEST(TestBase, type::int64_64_t) {
|
||||
audio::int64_64_t typeBase(16, 63);
|
||||
EXPECT_EQ(typeBase.get(), 16);
|
||||
typeBase.set(INT64_MIN, 63);
|
||||
@ -140,7 +140,7 @@ TEST(TestBase, type_int64_64_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_float_t) {
|
||||
TEST(TestBase, type::float_t) {
|
||||
audio::float_t typeBase(16, 0);
|
||||
EXPECT_EQ(typeBase.get(), 16.0);
|
||||
typeBase.set(INT32_MIN, 0);
|
||||
@ -155,7 +155,7 @@ TEST(TestBase, type_float_t) {
|
||||
EXPECT_EQ(typeBase.get(), -250.0f);
|
||||
}
|
||||
|
||||
TEST(TestBase, type_double_t) {
|
||||
TEST(TestBase, type::double_t) {
|
||||
audio::double_t typeBase(16, 0);
|
||||
EXPECT_EQ(int64_t(typeBase.get()), 16LL);
|
||||
EXPECT_EQ(typeBase.get(), 16.0); // Note : double point error
|
||||
|
Loading…
Reference in New Issue
Block a user