Sha256: f960f65d1e8c7d18a9c08fb2231347d024fc1ae5afdb33cc60cad779ca271236
Contents?: true
Size: 1.26 KB
Versions: 46
Compression:
Stored size: 1.26 KB
Contents
@include describe("Be longer than") { @include it("should expect longer lists to be longer") { @include should( expect( (1, 2, 3) ), to( be-longer-than( 2))); @include should( expect( (1) ), to( be-longer-than( 0))); @include should( expect( () ), to( be-longer-than(-1))); } @include it("should expect shorter lists not to be longer") { @include should( expect( (1, 2, 3) ), not-to( be-longer-than(4))); @include should( expect( (1) ), not-to( be-longer-than(2))); @include should( expect( () ), not-to( be-longer-than(1))); } @include it("should expect equal length lists not to be longer") { @include should( expect( (1, 2, 3) ), not-to( be-longer-than(3))); @include should( expect( (1) ), not-to( be-longer-than(1))); @include should( expect( () ), not-to( be-longer-than(0))); } @include it("should expect other values to be longer than 0") { @include should( expect( null ), to( be-longer-than(0))); @include should( expect( "string" ), to( be-longer-than(0))); } @include it("should expect other values to be shorter than 1") { @include should( expect( null ), not-to( be-longer-than(1))); @include should( expect( "string" ), not-to( be-longer-than(1))); } }
Version data entries
46 entries across 46 versions & 2 rubygems