Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
add bit functions tck cases (#854)
Browse files Browse the repository at this point in the history
add error tck cases

Co-authored-by: Yee <[email protected]>
  • Loading branch information
czpmango and yixinglu authored Mar 23, 2021
1 parent e54d5bd commit d96832d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/tck/features/expression/function/Mathematical.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2021 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
Feature: Mathematical function Expression

Scenario: bit functions
When executing query:
"""
return bit_and(5,bit_xor(4,bit_or(1,2))) as basic_test
"""
Then the result should be, in any order:
| basic_test |
| 5 |
When executing query:
"""
return [bit_and(5,null),bit_or(5,null),bit_xor(5,null)] as null_test
"""
Then the result should be, in any order:
| null_test |
| [NULL,NULL,NULL] |
When executing query:
"""
return [bit_and(5,true),bit_or(2,1.3),bit_xor("5",1)] as error_test
"""
Then the result should be, in any order:
| error_test |
| [BAD_TYPE, BAD_TYPE, BAD_TYPE] |

0 comments on commit d96832d

Please sign in to comment.