Closed wyz-icer closed 5 years ago
系统: win8.1 环境:Python 3.6.3 :: Anaconda, Inc. gitbash 操作环境: gitbash 下执行python
依照https://github.com/PytLab/gaft/blob/master/INSTALL.md 安装,运行测试文件时 python tests/*test.py 只能通过7个/(total ### [**[14个),可通过测试如下列表前七个:
测试成功结果:
Ran 1 test in 0.000s
OK ` 另外两个例子(一维搜索和二维搜索)可以正常运行
gaft我把tests作为一个module来处理的里面使用了relative import,你可以尝试在含有setup.py的路径下使用python setup.py test进行测试
python setup.py test
系统: win8.1 环境:Python 3.6.3 :: Anaconda, Inc. gitbash 操作环境: gitbash 下执行python
依照https://github.com/PytLab/gaft/blob/master/INSTALL.md 安装,运行测试文件时 python tests/*test.py 只能通过7个/(total ### [**[14个),可通过测试如下列表前七个:
测试成功结果:
python tests/uniform_crossover_test.py test_cross (main.UniformCrossoverTest) Make sure individuals can be crossed correctly. ... okRan 1 test in 0.000s
OK ` 另外两个例子(一维搜索和二维搜索)可以正常运行