summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js')
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
index 1e179135b..e9dbfcaf3 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
@@ -10,8 +10,12 @@ description: Call toUpperCase() function of function call
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") {
- $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toUpperCase() );
+if (function() {
+ return "GnulLuNa"
+ }().toUpperCase() !== "GNULLUNA") {
+ $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: ' + function() {
+ return "GnulLuNa"
+ }().toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////