Sha256: d8b9b1fbe486ede9a8e4f9d52412c07e06c91ff0dc990e72ea866ad437663339
Contents?: true
Size: 650 Bytes
Versions: 46
Compression:
Stored size: 650 Bytes
Contents
@include describe("Power Util") { @include it("should expect positive values to be calculated correctly") { @include should( expect( bc-util-power( 10, 2) ), to( equal( 100 ))); @include should( expect( bc-util-power( 2, 2) ), to( equal( 4 ))); @include should( expect( bc-util-power(0.5, 2) ), to( equal( 0.25 ))); } @include it("should expect negative values to be calculated correctly") { @include should( expect( bc-util-power( 10, -2) ), to( equal( 0.01 ))); @include should( expect( bc-util-power( 2, -2) ), to( equal( 0.25 ))); @include should( expect( bc-util-power(0.5, -2) ), to( equal( 4 ))); } }
Version data entries
46 entries across 46 versions & 2 rubygems