Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
puts配列の各要素が必要です。そのためのテストを書く方法は?
puts
puts本質的に非決定論的であるため、テストは難しい場合があります。また、使用している Ruby インタープリターは非常に優れたテスト カバレッジを備えていると想定しても安全です。ではなく、配列操作コードをテストしたいと思いますputs。