Add opcode handlers for logical_[not, or, and]]

This commit is contained in:
e.gavrin
2014-08-22 01:27:37 +04:00
parent 8e4ff93436
commit 7bda6e9d01
2 changed files with 150 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
assert((!false) === true);
assert((true || true) === true);
assert((false || true) === true);
assert((false || false) === false);
assert((true || false) === true);
assert((true && true) === true);
assert((true && false) === false);
assert((false && true) === false);
assert((false && false) === false);