Exemplo n.º 1
0
    def test_get_env(self):
        bench = FastDownwardBenchmark()
        env = bench.get_environment()
        self.assertTrue(issubclass(type(env), FastDownwardEnv))

        bench.config.instance_set_path = "../instance_sets/fast_downward/childsnack"
        bench.read_instance_set()
        env = bench.get_environment()
        self.assertTrue(issubclass(type(env), FastDownwardEnv))
Exemplo n.º 2
0
 def test_read_instances(self):
     bench = FastDownwardBenchmark()
     bench.read_instance_set()
     self.assertTrue(len(bench.config.instance_set) == 30)
     self.assertTrue(type(bench.config.instance_set[0]) == str)
     self.assertTrue(os.path.isfile(bench.config.instance_set[0]))
     path = bench.config.instance_set[0]
     bench2 = FastDownwardBenchmark()
     env = bench2.get_environment()
     self.assertTrue(type(env.instance_set[0]) == str)
     self.assertTrue(len(env.instance_set) == 30)
     self.assertTrue(path == env.instance_set[0])