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」'它應該可能工作... –