我正在开发一个transpiler,想试用TDD,但测试似乎没有运行。运行python test_transpiler.py
之后,我得到:
15
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
代码是:
import unittest
import transpiler
class TranspilerTDD:
def test_adds_encoding(self):
source = ""
result = transpile(source);
expected = "#coding: utf-8\n"
self.assertEqual(result, expected)
if __name__ == '__main__':
unittest.main()
其中transpile
是transpiler
中的一个函数(我确信它正在工作)。你知道吗
怎么了?你知道吗
改变
至
相关问题 更多 >
编程相关推荐