This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add error tck cases Co-authored-by: Yee <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
tests/tck/features/expression/function/Mathematical.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |