diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A3_T4.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A3_T4.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A3_T4.js b/external/contributions/Google/sputnik_conformance_modified/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A3_T4.js new file mode 100644 index 000000000..83e53bb0c --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A3_T4.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S11.11.1_A3_T4;
+* @section: 11.11.1;
+* @assertion: If ToBoolean(x) is false, return x;
+* @description: Type(x) or Type(y) is changed between null and undefined;
+*/
+
+//CHECK#1
+if ((undefined && true) !== undefined) {
+ $ERROR('#1: (undefined && true) === undefined');
+}
+
+//CHECK#2
+if ((null && false) !== null) {
+ $ERROR('#2: (null && false) === null');
+}
|