Skip to content

JSROOT tests for types/{set,map} - #89

Merged
hahnjo merged 16 commits into
root-project:mainfrom
undefined-panda:jsroot-set-map
Aug 12, 2026
Merged

JSROOT tests for types/{set,map}#89
hahnjo merged 16 commits into
root-project:mainfrom
undefined-panda:jsroot-set-map

Conversation

@undefined-panda

@undefined-panda undefined-panda commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Add JSROOT read scripts for:

  • types/set
  • types/multiset
  • types/unordered_set
  • types/unordered_multiset
  • types/map
  • types/multimap
  • types/unordered_map
  • types/unordered_multimap

This PR adds the necessary read files that use JSROOT to read the binary files generated by the write.C files in the corresponding ROOT tests.

@hahnjo hahnjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You may need to sort also the "ordered" containers because that's a guarantee on the reading side when using C++, but I'm not sure ordered containers exist in JavaScript...

Comment thread jsroot/types/unordered_set/fundamental/read.mjs Outdated
Comment thread jsroot/types/map/nested/read.mjs Outdated
Comment thread jsroot/types/unordered_map/README.md Outdated
Comment thread jsroot/types/unordered_multimap/fundamental/read.mjs Outdated
Comment thread jsroot/types/map/nested/read.mjs Outdated
@undefined-panda
undefined-panda force-pushed the jsroot-set-map branch 2 times, most recently from d6b7f9f to 4a89a46 Compare August 10, 2026 15:22

@hahnjo hahnjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You may need to sort also the "ordered" containers because that's a guarantee on the reading side when using C++, but I'm not sure ordered containers exist in JavaScript...

☝️

(and maybe at that point, it may make sense to refactor common functionality to jsroot_reader.mjs...)

Comment thread jsroot/types/unordered_set/nested/read.mjs Outdated
Comment thread jsroot/types/map/README.md Outdated
Comment thread jsroot/types/unordered_multimap/README.md Outdated
@undefined-panda
undefined-panda force-pushed the jsroot-set-map branch 2 times, most recently from 2a5f54a to 28e3d02 Compare August 11, 2026 08:32

@hahnjo hahnjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some more comments inline. Can you also add the (ordered) multiset and multimap? They should hopefully work the same...

Comment thread jsroot/types/set/fundamental/read.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/types/unordered_set/fundamental/read.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/jsroot_reader.mjs Outdated
Comment thread jsroot/types/unordered_set/fundamental/read.mjs Outdated
@hahnjo
hahnjo merged commit 56d9b4d into root-project:main Aug 12, 2026
1 check passed
@undefined-panda
undefined-panda deleted the jsroot-set-map branch August 13, 2026 12:54
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