【文件属性】:
文件名称:family-tree-problem
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-23 12:16:24
PHP
家谱问题
族谱问题的代码解决方案。
测试文件
在运行测试之前,请将所有测试文件添加到文件扩展名为.txt的/ tests / inputFiles /目录中。
用法
从根目录在CLI界面中运行以下命令
php tests/execute.php
样本输出
以下是代码中当前测试文件的示例输出。
Starting test with input file: 01-paternal-uncle.txt
Ish Vich Aras
NONE
PERSON_NOT_FOUND
Completed test with input file: 01-paternal-uncle.txt
Starting test with input file: 02-maternal-uncle.txt
Chit Ish Vich Aras
NONE
PERSON_NOT_FOUND
Completed test
【文件预览】:
family-tree-problem-master
----src()
--------Person.php(8KB)
--------FamilyTree.php(4KB)
----ReadMe.md(2KB)
----tests()
--------inputFiles()
--------familyTree.json(5KB)
--------load.php(157B)
--------execute.php(718B)