e8f28ebef0cf732d126e76d13a27e4bca505328b,server/website/tests/test_utils.py,ConversionUtilTest,test_get_human_readable,#ConversionUtilTest#,270
Before Change
for i, day_test in enumerate(day_test_convert):
day_readable = ConversionUtil.get_human_readable(
day_test, system=ConversionUtil.DEFAULT_TIME_SYSTEM)
self.assertEqual(day_readable, day_ans[i])
class LabelUtilTest(TestCase):
def test_style_labels(self):
After Change
def test_get_human_readable(self):
// Bytes
for i, raw_bytes in enumerate(self.as_bytes):
exp_hr = self.bytes_to_hr[i]
exp_hr2 = self.bytes_to_hr2[i]
min_suffix = self.min_bytes_suffixes[i]
hr_value = ConversionUtil.get_human_readable(
raw_bytes, system=ConversionUtil.DEFAULT_BYTES_SYSTEM)
hr_value2 = ConversionUtil.get_human_readable2(
raw_bytes, system=ConversionUtil.DEFAULT_BYTES_SYSTEM,
min_suffix=min_suffix)
self.assertEqual(hr_value, exp_hr)
self.assertEqual(hr_value2, exp_hr2)
// Time
for i, raw_time in enumerate(self.as_ms):
exp_hr = self.ms_to_hr[i]
exp_hr2 = self .ms_to_hr2[i]
min_suffix = self.min_time_suffixes[i]
hr_value = ConversionUtil.get_human_readable(
raw_time, system=ConversionUtil.DEFAULT_TIME_SYSTEM)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: cmu-db/ottertune
Commit Name: e8f28ebef0cf732d126e76d13a27e4bca505328b
Time: 2019-10-08
Author: dvanaken@cs.cmu.edu
File Name: server/website/tests/test_utils.py
Class Name: ConversionUtilTest
Method Name: test_get_human_readable
Project Name: cmu-db/ottertune
Commit Name: e8f28ebef0cf732d126e76d13a27e4bca505328b
Time: 2019-10-08
Author: dvanaken@cs.cmu.edu
File Name: server/website/tests/test_utils.py
Class Name: ConversionUtilTest
Method Name: test_get_human_readable
Project Name: RaRe-Technologies/gensim
Commit Name: 33a3ef2f968c7a35d65ab88a002ef1e95e4cc32a
Time: 2017-09-25
Author: problemset@163.com
File Name: gensim/test/test_translation_matrix.py
Class Name: TestTranslationMatrix
Method Name: test_translate_nn
Project Name: RaRe-Technologies/gensim
Commit Name: 33a3ef2f968c7a35d65ab88a002ef1e95e4cc32a
Time: 2017-09-25
Author: problemset@163.com
File Name: gensim/test/test_translation_matrix.py
Class Name: TestTranslationMatrix
Method Name: test_translate_gc