Sha256: 74e1690dcc6a2e4c4011d3dada43f6e7c4dbd52d201861a457b4ad4fad4c8a71

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

/*
 * Convert fixed to fluid width
 */
@include describe("[function] fluid-width") {

	@include it("should expect result to be equal to manual calculation") {
		@include should(expect(
			flint-fluid-width(80em / 16, 80em)),
			to(be(100% / 16))
		);
		@include should(expect(
			flint-fluid-width(80em / 8, 80em)),
			to(be(100% / 8))
		);
		@include should(expect(
			flint-fluid-width(80em / 4, 80em)),
			to(be(100% / 4))
		);
		@include should(expect(
			flint-fluid-width(80em / 3, 80em)),
			to(be(100% / 3))
		);
		@include should(expect(
			flint-fluid-width(80em / 2, 80em)),
			to(be(100% / 2))
		);
		@include should(expect(
			flint-fluid-width(80em / 1, 80em)),
			to(be(100% / 1))
		);
	}
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flint-gs-2.0.6 tests/input/functions/lib/_fluid-width.scss
flint-gs-2.0.5 tests/input/functions/lib/_fluid-width.scss
flint-gs-2.0.4 tests/input/functions/lib/_fluid-width.scss