From 5a7120e16353cddcb752703208533bda887f5249 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Wed, 5 Jan 2011 21:52:53 -0500 Subject: [PATCH] merging in refactorTests. --- test/boolean_literals.coffee | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/test/boolean_literals.coffee b/test/boolean_literals.coffee index 28e72120..4aa54e7a 100644 --- a/test/boolean_literals.coffee +++ b/test/boolean_literals.coffee @@ -4,16 +4,18 @@ # TODO: add method invocation tests: true.toString() is "true" #764: Boolean should be indexable -eq Boolean::toString, true['toString'] -eq Boolean::toString, false['toString'] -eq Boolean::toString, yes['toString'] -eq Boolean::toString, no['toString'] -eq Boolean::toString, on['toString'] -eq Boolean::toString, off['toString'] +toString = Boolean::toString -eq Boolean::toString, true.toString -eq Boolean::toString, false.toString -eq Boolean::toString, yes.toString -eq Boolean::toString, no.toString -eq Boolean::toString, on.toString -eq Boolean::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'] + +eq toString, true.toString +eq toString, false.toString +eq toString, yes.toString +eq toString, no.toString +eq toString, on.toString +eq toString, off.toString