Beispiel #1
0
 def test_get_solutions_json(self):
     with self.unpack_named_src('problem.json') as conf_file:
         cfg = Config()
         self.assertCountEqual(cfg.get_solutions(),
                               [('ks_fast', 'solutions/floors_ks_fast.cpp'),
                                ('floors_ks.cpp', 'solutions/floors_ks.cpp'),
                                ('floors_ks_slow.cpp', 'solutions/floors_ks_slow.cpp')])
Beispiel #2
0
 def test_get_solutions_ini(self):
     with self.unpack_named_src('problem.conf') as conf_file:
         cfg = Config()
         self.assertCountEqual(cfg.get_solutions(),
                               [('ks_py', 'solutions/floors_ks.py'),
                                ('ks', 'solutions/floors_ks.cpp'),
                                ('ks_slow', 'solutions/floors_ks_slow.cpp')])