Skip to content

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

Open
undefined-panda wants to merge 16 commits into
root-project:mainfrom
undefined-panda:jsroot-set-map
Open

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

Conversation

@undefined-panda

Copy link
Copy Markdown
Collaborator

Add JSROOT read scripts for:

  • types/set
  • types/unordered_set
  • types/unordered_multiset
  • types/map
  • 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
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