Skip to content

Conversation

chuckyvt
Copy link
Contributor

@chuckyvt chuckyvt commented Aug 1, 2025

As part of development work on the stdlib hashmaps, I have run into CI failures on the stdlib test that I'm not sure if it's due to code updates, or because of format of hashmap test program. For example, the way the current implantation uses transfer to generate character values, I'm not sure it's always generating valid character values. Also fypp makes it harder to develop and update the test routine as the hashmaps evolve.

This PR is an attempt to address those shortcomings. The intent is to improve test coverage of hashmap functions, improve test quality (ensure valid data is being used for key and values), and simplify the code and remove fypp preprocessor format.

chuckyvt added 4 commits July 27, 2025 23:22
This is a refactor of the main hashmap test routine to improve coverage and simplify the code.   The fypp preprocessor directives have been removed to make the code easier to work with and modify for future releases.
Addressed 132 character limit issues.
Minor cleanup
Add example of using abstract hashmap_type for procedure interrface.
@chuckyvt
Copy link
Contributor Author

chuckyvt commented Aug 2, 2025

This PR also makes the abstract hashmap_type public so that can be used for interface definition that works for both open and chaining types. I thought it was worth adding a simple example showing the use of that.

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

Thank you @chuckyvt for this PR. Overall it looks good to me. I have only minor suggestions

! This allows the procedure to be used for both chaining and open hashmap types.

program example_abstract_type
use stdlib_kinds, only: int8, int64
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
use stdlib_kinds, only: int8, int64

Both are not used in this example

@@ -0,0 +1,53 @@

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Nice suggestion to make hashmap_type public

Could you update the specs, too, please?

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.

2 participants