// Copyright 2009 the Sputnik authors.  All rights reserved.
/**
 * String.prototype.toString() is equal String.prototype.valueOf()
 *
 * @path ch15/15.5/15.5.4/S15.5.4.2_A3_T1.js
 * @description Create new String() with various arguments and compare returned results of toString() and valueOf()
 */

//CHECK#1
var str = new String();
if(!(str.valueOf() == str.toString()))
  $ERROR('#1: str = new String(),str.valueOf() == str.toString()');

//CHECK#2
str = new String(true);
if(!(str.valueOf() == str.toString()))
  $ERROR('#2: str = new String(true),str.valueOf() == str.toString()');

//CHECK#3
str = new String(false);
if(!(str.valueOf() == str.toString()))
  $ERROR('#3: str = new String(false),str.valueOf() == str.toString()');

//CHECK#4
str = new String(Math.PI);
if(!(str.valueOf() == str.toString()))
  $ERROR('#4: str = new String(Math.PI),str.valueOf() == str.toString()');

