Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move casting to string tests from array_test.py and struct_test.py to cast_test.py #4372

Merged
merged 4 commits into from
Dec 16, 2021

Conversation

HaoYang670
Copy link
Collaborator

Signed-off-by: remzi [email protected]
close #4262

Move the casting to string tests of array and struct to the file cast_test.py, because most of the casting tests are in this file.
Also, we refactor the code so that it is easier to be updated when adding new element types.
Besides, as it is supported to cast Timestamp to string, we update the corresponding code.

remove timestamp from not-matched type
refactor the code

Signed-off-by: remzi <[email protected]>
@HaoYang670 HaoYang670 added the test Only impacts tests label Dec 16, 2021
@HaoYang670
Copy link
Collaborator Author

build

optimize the data_gen of cast_struct_to_string

Signed-off-by: remzi <[email protected]>
@HaoYang670
Copy link
Collaborator Author

build

@HaoYang670 HaoYang670 merged commit 1953d45 into NVIDIA:branch-22.02 Dec 16, 2021
@HaoYang670 HaoYang670 deleted the issue4262_move_test branch December 16, 2021 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QST]Move tests of array (struct) casting to the file cast_test.py
2 participants