Sha256: 4cfe9e7d5327e28ccbfb0e4b91b3b0199ba3eafe10032bc114326489028c584f

Contents?: true

Size: 456 Bytes

Versions: 24

Compression:

Stored size: 456 Bytes

Contents

ensure-unit(n)
  foo bar
  foo bar
  foo bar
  n is a 'unit'

body
  a = 15
  b = 15
  
  // yes
  foo a == b and (b == 15 ? 1 : 0) ? yes : no
  
  // true
  foo a == b and b == a
  
  // yay
  foo 15px is a 'unit' and #fff is a 'color'?yay:nah
  
  // nah
  foo 15px is a 'color' and #fff is a 'color'?yay:nah
  
  // nah
  foo 15px is a 'unit' and #fff is a 'unit'?  yay   : nah
  
  // true
  foo ensure-unit(15)
  
  // false
  foo ensure-unit(#fff)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/test/cases/operators.complex.styl
stylus-source-0.22.6 vendor/test/cases/operators.complex.styl
stylus-source-0.22.5 vendor/test/cases/operators.complex.styl
stylus-source-0.22.4 vendor/test/cases/operators.complex.styl
stylus-source-0.22.3 vendor/test/cases/operators.complex.styl
stylus-source-0.22.2 vendor/test/cases/operators.complex.styl
stylus-source-0.22.1 vendor/test/cases/operators.complex.styl
stylus-source-0.22.0 vendor/test/cases/operators.complex.styl
stylus-source-0.21.2 vendor/test/cases/operators.complex.styl
stylus-source-0.21.1 vendor/test/cases/operators.complex.styl
stylus-source-0.21.0 vendor/test/cases/operators.complex.styl
stylus-source-0.20.1 vendor/test/cases/operators.complex.styl
stylus-source-0.20.0 vendor/test/cases/operators.complex.styl
stylus-source-0.19.8 vendor/test/cases/operators.complex.styl
stylus-source-0.19.7 vendor/test/cases/operators.complex.styl
stylus-source-0.19.6 vendor/test/cases/operators.complex.styl
stylus-source-0.19.5 vendor/test/cases/operators.complex.styl
stylus-source-0.19.4 vendor/test/cases/operators.complex.styl
stylus-source-0.19.3 vendor/test/cases/operators.complex.styl
stylus-source-0.19.2 vendor/test/cases/operators.complex.styl