DateTime.now
# => 2014-11-17T22:16:15+08:00
DateTime.stub :now, (Date.today.to_date - 14) do
puts DateTime.now
# ...
puts DateTime.now
end
# => 2014-11-03
# => 2014-11-03
已经 mixed 进 TestCase.
bench_exp
bench_linear
bench_range
assert_performance
assert_performance_constant
assert_performance_exponential
assert_performance_linear
assert_performance_logarithmic
assert_performance_power
fit_error
fit_exponential
fit_linear
fit_logarithmic
fit_power
sigma
validation_for_fit
bench
bench_performance_constant
bench_performance_exponential
bench_performance_linear
bench_range
passed?
record
report
start