Sha256: 6ebb079d866ebefc4b47d6157740ab8405b9f76eafc5a73522b999657a45ed17
Contents?: true
Size: 1.62 KB
Versions: 46
Compression:
Stored size: 1.62 KB
Contents
@include describe("Equal") { @include it("should expect two equal values to be equal") { @include should( expect( 1 ), to( equal( 1 ))); @include should( expect( -1 ), to( equal( -1 ))); @include should( expect( a ), to( equal( a ))); @include should( expect( false ), to( equal( false ))); } @include it("should expect two non-equal values not to be equal") { @include should( expect( 1 ), not-to( equal( 2 ))); @include should( expect( -1 ), not-to( equal( 1 ))); @include should( expect( a ), not-to( equal( b ))); @include should( expect( false ), not-to( equal( true ))); } @include it("should expect two equal lists to be equal") { @include should(expect( (1, 2, 3) ), to( equal( (1, 2, 3) ))); @include should(expect( ("a", "b", "c") ), to( equal( ("a", "b", "c") ))); @include should(expect( (true, false, true) ), to( equal( (true, false, true) ))); } @include it("should expect two unequal lists not to be equal") { @include should(expect( (3, 2, 1) ), not-to( equal( (1, 2, 3) ))); @include should(expect( ("c", "b", "a") ), not-to( equal( ("a", "b", "c") ))); @include should(expect( (false, true, false) ), not-to( equal( (true, false, true) ))); } @include it("should expect two equal lists with different seperators not to be equal") { @include should(expect( 1 2 3 ), not-to( equal( (1, 2, 3) ))); @include should(expect( "a" "b" "c" ), not-to( equal( ("a", "b", "c") ))); @include should(expect( true false true ), not-to( equal( (true, false, true) ))); } }
Version data entries
46 entries across 46 versions & 2 rubygems