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.
一个有点轻松的问题:我的 rspec 测试以:
Finished in 7/5 minutes 0.78322 seconds
这到底是什么意思呢?确实感觉大约是 1-2 分钟,但为什么小数加上小数秒?
FWIW,看起来 RSpec(或某人)正在计算分钟数作为 aRational而不是 normal Numeric。这是我能想象你会看到小数值的唯一原因。
Rational
Numeric