You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
732 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package xu.problem.pathfinding;
import algs4.util.In;
import core.problem.Problem;
import core.runner.EngineFeeder;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
class PathFeederTest {
@Test
void getProblems() {
//生成一个具体的EngineFeederFeederXu引擎饲养员徐老师:)
EngineFeeder feeder = new FeederXu();
//从文件中读入问题的实例NPuzzle问题
In problemInput = new In("resources/npuzzle.txt");
//feeder从文件获取所有问题实例
ArrayList<Problem> problems = feeder.getProblems(problemInput);
for (Problem problem : problems){
problem.draw();
}
}
}