spec/hubris_spec.rb in hubris-0.0.4 vs spec/hubris_spec.rb in hubris-0.0.5

- old
+ new

@@ -383,13 +383,10 @@ end end describe 'Performance' do - def be_quick - simple_matcher("a small duration") { |given| given < 0.1 } - end it "caches its output" do # only relevant for inlining class First @@ -399,10 +396,10 @@ class Second hubris :inline => "foobar::Int->Int; foobar a = a" end after = Time.now - (after-before).should be_quick + (after-before).should < 0.1 end it "behaves memory-wise" do # so, how on earth do we do this? Conceptually, we want to bind a function, # call it many times, and assert that memory use is (eventually) constant