0
我有几个测试,我使用Rspec运行。如何在Rspec控制台输出的测试之间添加换行符?
输出结果看起来大概如下:
returns an array containing partial words that have changed their case(upper/lower),
and have matching partial words in opposite elements(ins/del)
returns an array containing words that have changed their case(upper/lower),
and have matching whole words in opposite elements(ins/del)
returns an array containing words that have changed their case(upper/lower), are at the start of a sentence,
and have matching words in opposite elements(ins/del)
returns an array containing partial words that have changed their case(uppler/lower), have matching partial words in opposite elements(ins/del),
and are preceded by an inserted word
我想有一个换行分隔每个测试,使其更容易为我读输出。我曾尝试添加“\ n”,但它似乎不起作用。
任何想法?
您在哪里试图放置'\ n'? –
我把它放在测试说明的末尾。例如它“返回一个数组... \ n”但这不起作用 – chell
如果它是在双引号'“\ n”'它应该可能工作... –