我想写一个像这样的doctest:
"""
>>> checking()
some random text
some more random text
...
test is passed ##ignore all above/below lines except this one
more and more randomness
...
finished.
"""
我不太在乎前几行或后几行。我只担心“测试通过”这样的声明。我尝试了类似的东西
"""
>>> checking()
some random text
...
test is passed
...
finished.
"""
没有成功。doctest有可能吗?谢谢你的帮助
相关分类