Skip to content

Commit

Permalink
Fix bits to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
inakleinbottle committed Oct 24, 2023
1 parent 31f02a6 commit 2245446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalars/src/test_scalar_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ TEST_F(ScalarTypeTests, BasicInfoFloat)

ASSERT_EQ(info.device.device_type, DeviceType::CPU);
ASSERT_EQ(info.device.device_id, 0);
ASSERT_EQ(info.basic_info.bits, sizeof(float) * 8);
ASSERT_EQ(info.basic_info.bytes, sizeof(float));
ASSERT_EQ(info.basic_info.code, ScalarTypeCode::Float);
ASSERT_EQ(info.basic_info.lanes, 1);
}
Expand All @@ -87,7 +87,7 @@ TEST_F(ScalarTypeTests, BasicInfoDouble)

ASSERT_EQ(info.device.device_type, DeviceType::CPU);
ASSERT_EQ(info.device.device_id, 0);
ASSERT_EQ(info.basic_info.bits, sizeof(double) * 8);
ASSERT_EQ(info.basic_info.bytes, sizeof(double));
ASSERT_EQ(info.basic_info.code, ScalarTypeCode::Float);
ASSERT_EQ(info.basic_info.lanes, 1);
}
Expand Down

0 comments on commit 2245446

Please sign in to comment.