Sha256: c15833568434c8d909dd2f0c6fda351ea318a089769fb6562d9cc143e08a34b6

Contents?: true

Size: 537 Bytes

Versions: 10

Compression:

Stored size: 537 Bytes

Contents

# Boolean Literals
# ----------------

# TODO: add method invocation tests: true.toString() is "true"

test "#764 Booleans should be indexable", ->
  toString = Boolean::toString

  eq toString, true['toString']
  eq toString, false['toString']
  eq toString, yes['toString']
  eq toString, no['toString']
  eq toString, on['toString']
  eq toString, off['toString']

  eq toString, true.toString
  eq toString, false.toString
  eq toString, yes.toString
  eq toString, no.toString
  eq toString, on.toString
  eq toString, off.toString

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.3.1 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.3.0 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.5 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.4 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.3 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.2 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.1 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.2.0 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee
guard-mthaml-0.1.0 vendor/coffeescript/coffeescript/tests/cases/booleans.coffee