In particular, what if we decided we wanted to write a program that would test what happens when we run a program on itself as input.
特别是,如果把一个程序自身当作它的输入是会发生什么,我们需要编写一个怎忙的程序来测试它呢?
For example, it is difficult to test whether a program is making proper use of the filesystem without actually allowing it to read and write from the filesystem.
例如,实际上如果不允许一个程序从文件系统进行读和写,很难测试它是否正确使用了该文件系统。
Write and test a big program in small pieces.
将一个大块的程序分解成几个小部分进行编写和测试。
应用推荐