| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Returns a boolean value (not a Boolean object) computed by |
| Used values 1, new String("1"), new Object(1) and called without |
| if( typeof Boolean() !== "boolean" ) { |
| $ERROR('#1: typeof Boolean() should be "boolean", actual is "'+typeof Boolean()+'"'); |
| if( typeof Boolean(1) !== "boolean" ) { |
| $ERROR('#2: typeof Boolean(1) should be "boolean", actual is "'+typeof Boolean(1)+'"'); |
| if( typeof Boolean(new String("1")) !== "boolean" ) { |
| $ERROR('#3: typeof Boolean(new String("1")) should be "boolean", actual is "'+typeof Boolean(new String("1"))+'"'); |
| if( typeof Boolean(new Object(1)) !== "boolean" ) { |
| $ERROR('#4: typeof Boolean(new Object(1)) should be "boolean", actual is "'+typeof Boolean(new Object(1))+'"'); |