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

Cpp executor - first collation conformance tests with ICU4C #106

Merged
merged 26 commits into from
Dec 9, 2023

Conversation

sven-oly
Copy link
Collaborator

@sven-oly sven-oly commented Sep 25, 2023

This adds files for compiling and executing C++ with ICU4C in conformance testing. This is not yet ready for integration.

@sven-oly sven-oly requested a review from sffc September 25, 2023 22:53
@sven-oly
Copy link
Collaborator Author

I think this needs to explicitly reference the particular JSON library.

Running ./executor gives with any input gives:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string: construction from null is not valid

@sven-oly
Copy link
Collaborator Author

Yikes, some of my Schema stuff has leaked into this.

# export ICU4C= $location
# export LD_LIBRARY_PATH=$ICU4C/lib:$LD_LIBRARY_PATH
# export PATH=$ICU4C/bin:$PATH
# export CPATH=$ICU4C/bin:$CPATH
# - do 'make' in this directory

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see json-c mentioned anywhere; seems like it should be?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's installed properly, then an explicit reference isn't needed.

@sven-oly
Copy link
Collaborator Author

sven-oly commented Dec 5, 2023

Updated this PR with ICU4C collation versions 71, 72, 73, and 74.

Copy link
Collaborator

@echeran echeran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pull out the ICU4C number formatting code, it looks good to me. Save any rework you need to do on ICU4C number formatting executor code for a separate PR. I can help you with git stuff to split your code out into separate branches accordingly if that's what you want to do.

@sven-oly sven-oly changed the title Cpp executor - adding code to run conformance tests with ICU4C Cpp executor - first collation conformance tests with ICU4C Dec 6, 2023
@echeran
Copy link
Collaborator

echeran commented Dec 8, 2023

Many of the comments that you replied to don't have the changes applied in the PR. Did you make the commits locally without pushing them? Check Sublime Merge to visually see what's going on.

Copy link
Collaborator

@echeran echeran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


// What was the actual returned value?
json_object_object_add(
return_json, "compare", json_object_new_int64(numeric_result));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay, looking good (by using numeric_result as the arg to json_object_new_int64)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this file accordingly.

@sven-oly sven-oly merged commit 17d6a79 into unicode-org:main Dec 9, 2023
@sven-oly sven-oly deleted the cpp_executor branch December 9, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants