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

Commit

Permalink
Add tests of parsing string to int (#1337)
Browse files Browse the repository at this point in the history
* Add tests of parsing string to int

* Update workflow
  • Loading branch information
Aiee authored Aug 22, 2021
1 parent 09fac4d commit 422c075
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ jobs:
-DCMAKE_CXX_COMPILER=$TOOLSET_DIR/bin/g++ \
-DCMAKE_C_COMPILER=$TOOLSET_DIR/bin/gcc \
-DCMAKE_BUILD_TYPE=Release \
-DNEBULA_COMMON_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DNEBULA_STORAGE_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DENABLE_TESTING=on \
-DENABLE_BUILD_STORAGE=on \
-DENABLE_MODULE_FORCE_CHECKOUT=off \
-B build
echo "::set-output name=j::10"
;;
Expand All @@ -102,8 +105,11 @@ jobs:
-DCMAKE_CXX_COMPILER=$TOOLSET_DIR/bin/g++ \
-DCMAKE_C_COMPILER=$TOOLSET_DIR/bin/gcc \
-DCMAKE_BUILD_TYPE=Debug \
-DNEBULA_COMMON_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DNEBULA_STORAGE_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DENABLE_TESTING=on \
-DENABLE_BUILD_STORAGE=on \
-DENABLE_MODULE_FORCE_CHECKOUT=off \
-B build
echo "::set-output name=j::10"
;;
Expand All @@ -115,9 +121,12 @@ jobs:
-DCMAKE_CXX_COMPILER=$TOOLSET_DIR/bin/clang++ \
-DCMAKE_C_COMPILER=$TOOLSET_DIR/bin/clang \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DNEBULA_COMMON_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DNEBULA_STORAGE_REPO_TAG=${{ steps.tag.outputs.tag }} \
-DENABLE_ASAN=on \
-DENABLE_TESTING=on \
-DENABLE_BUILD_STORAGE=on \
-DENABLE_MODULE_FORCE_CHECKOUT=off \
-B build
echo "::set-output name=j::6"
;;
Expand Down
7 changes: 4 additions & 3 deletions tests/tck/features/expression/function/TypeConversion.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ Feature: TypeConversion Expression
When executing query:
"""
YIELD [toInteger(true), toInteger(false), toInteger(1), toInteger(3.14),
toInteger("trUe"), toInteger("3.14"), toInteger(null)] AS yield_toInteger
toInteger("trUe"), toInteger("3.14"), toInteger(null), toInteger("1e3"),
toInteger("1E3"), toInteger("1.5E4")] AS yield_toInteger
"""
Then the result should be, in any order:
| yield_toInteger |
| [BAD_TYPE, BAD_TYPE, 1, 3, NULL, 3, NULL] |
| yield_toInteger |
| [BAD_TYPE, BAD_TYPE, 1, 3, NULL, 3, NULL, 1000, 1000, 15000] |
When executing query:
"""
UNWIND [true, false, 1, 3.14, "trUe", "3.14", null] AS b
Expand Down

0 comments on commit 422c075

Please sign in to comment.