From 4c0cc482e88feb68f20991a33719dd16b4bed73c Mon Sep 17 00:00:00 2001 From: naomiGrew <97107839+naomiGrew@users.noreply.github.com> Date: Wed, 12 Jul 2023 16:16:37 +0100 Subject: [PATCH] add check for data values for every header --- rebench/tests/persistency_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rebench/tests/persistency_test.py b/rebench/tests/persistency_test.py index 30012bfc..ef981df6 100644 --- a/rebench/tests/persistency_test.py +++ b/rebench/tests/persistency_test.py @@ -188,9 +188,11 @@ def test_check_file_lines(self): self.assertTrue(self.is_valid_json(json_code)) json_code = self.get_line_after_char('Source:', lines[3]) self.assertTrue(self.is_valid_json(json_code)) - line = lines[4].strip().split() + line = lines[4].split("\t") + line[-1] = line[-1].rstrip('\n') words = Measurement.get_column_headers() self.assertEqual(line, words) + self.assertEqual(len((lines[5]).split("\t")) ,len(line)) def get_line_after_char(self, char, line): if char in line: