阅读背景:

如何在单个可执行文件中将数据重定向到stdin?

来源:互联网 

I am using cxxtest as the test framework for my C++ classes, and would like to figure out a way to simulate sending data to classes which would normally expect to receive it from standard input. I have several different files which I would like to send to the classes during different tests, so redirection from the command line to the test suite executable is not an option. as the test framework for my




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: