From 9763592705e842975ac6b34c97ce1a4e74bc1ad3 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Mon, 20 Jul 2020 10:38:41 +0200 Subject: [PATCH] Remove test for code that does not exist anymore --- core-buffer/test/test_buffer_utils.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core-buffer/test/test_buffer_utils.cpp b/core-buffer/test/test_buffer_utils.cpp index 7368e16..d7fdd6b 100644 --- a/core-buffer/test/test_buffer_utils.cpp +++ b/core-buffer/test/test_buffer_utils.cpp @@ -47,23 +47,3 @@ TEST(BufferUtils, get_file_frame_index) ASSERT_EQ(BufferUtils::get_file_frame_index(12345543), 543); ASSERT_EQ(BufferUtils::get_file_frame_index(12345999), 999); } - -TEST(BufferUtils, get_path_suffixes) -{ - auto suffixes = BufferUtils::get_path_suffixes(15100, 18000); - ASSERT_EQ(suffixes[0].start_pulse_id, 15000); - ASSERT_EQ(suffixes[0].stop_pulse_id, 15999); - ASSERT_EQ(suffixes[0].path, "//0/15000.h5"); - - ASSERT_EQ(suffixes[1].start_pulse_id, 16000); - ASSERT_EQ(suffixes[1].stop_pulse_id, 16999); - ASSERT_EQ(suffixes[1].path, "//0/16000.h5"); - - ASSERT_EQ(suffixes[2].start_pulse_id, 17000); - ASSERT_EQ(suffixes[2].stop_pulse_id, 17999); - ASSERT_EQ(suffixes[2].path, "//0/17000.h5"); - - ASSERT_EQ(suffixes[3].start_pulse_id, 18000); - ASSERT_EQ(suffixes[3].stop_pulse_id, 18999); - ASSERT_EQ(suffixes[3].path, "//0/18000.h5"); -} \ No newline at end of file