2004-04-14 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Thu, 15 Apr 2004 00:10:01 +0000 (00:10 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Thu, 15 Apr 2004 00:10:01 +0000 (00:10 -0000)
* Added log-ops.js, we'll be adding all sort of test for logic
operators here.

svn path=/trunk/mcs/; revision=25518

mcs/jtests/ChangeLog
mcs/jtests/Test.Sources
mcs/jtests/log-ops.js [new file with mode: 0644]

index 137cb06ea674c3c035742335a9490d7b5ddf2d79..036f8b4a7aca7d7cce64a60b3ab4939399431bd2 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-14  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
+
+       * Added log-ops.js, we'll be adding all sort of test for logic
+       operators here.
+
 2004-03-13  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
 
        * func-form-params.js: exercise function's parameters.
index 017e6b4f15c47f45392392f906191720b60949f8..796288ca1a2e89610e6ffbf9e2e22cec9f18b4a4 100644 (file)
@@ -2,4 +2,5 @@ TEST_SOURCES = \
        var-decl init-var-num init-var-string simple-assign-num simple-assign-vars \
        simple-assign-bool global-bool-lits global-id global-num global-sum \
        global-assign-sum empty-func func-form-params func-total-locals func-nested \
-       greater-than less-than greater-than-eq less-than-eq assign-less-than-eq
+       greater-than less-than greater-than-eq less-than-eq assign-less-than-eq \
+       log-ops
diff --git a/mcs/jtests/log-ops.js b/mcs/jtests/log-ops.js
new file mode 100644 (file)
index 0000000..6ac24f6
--- /dev/null
@@ -0,0 +1,9 @@
+var x, y, z, w;
+
+x = true;
+y = false;
+z = true;
+
+w = x && y || z;
+
+print (w);