mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 00:32:42 +02:00
Add test for file frame index
This commit is contained in:
@@ -37,4 +37,11 @@ TEST(BufferUtils, get_filename)
|
||||
12344999);
|
||||
|
||||
ASSERT_NE(result4, expected_file);
|
||||
}
|
||||
|
||||
TEST(BufferUtils, get_file_frame_index)
|
||||
{
|
||||
ASSERT_EQ(get_file_frame_index(12345000), 0);
|
||||
ASSERT_EQ(get_file_frame_index(12345543), 543);
|
||||
ASSERT_EQ(get_file_frame_index(12345999), 999);
|
||||
}
|
||||
Reference in New Issue
Block a user