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

Question: How to test the field of <fragment group> #20

Closed
masatake opened this issue Nov 17, 2017 · 5 comments
Closed

Question: How to test the field of <fragment group> #20

masatake opened this issue Nov 17, 2017 · 5 comments

Comments

@masatake
Copy link
Collaborator

How can I write a test case for testing a fragment group?

self.checkDesc(parser, ???, VALUE)

I wonder what should be specifed as PATH argument of check* methods.

fg

@vstinner
Copy link
Owner

You can get a field by its name or its index. Try parser[0]?

@masatake
Copy link
Collaborator Author

You can get a field by its name or its index. Try parser[0]?

How can I know the name of a field?

As your comment I tired following path:

self.checkValue(parser, "/parser[0]", ...)

, and

self.checkValue(parser, "/group[0]/inode_table/inode[14]block[0]/parser[0]", ...)

.

Both don't work expectedly.

I'm afraid my question makes sense.
The first screenshot is taken from a screen rendered when pressing space key on the following screen:

upper-tree

@vstinner
Copy link
Owner

No activity for longer than 1 year, I close the issue.

@masatake masatake reopened this Feb 7, 2024
@masatake
Copy link
Collaborator Author

masatake commented Feb 7, 2024

This issue was presented to me again when I work on #92.

@masatake
Copy link
Collaborator Author

masatake commented Feb 7, 2024

About #92, I need to correct my mistake when generating an input file.
When I find a reproducer, I will reopen this (or report my solution).

@masatake masatake closed this as completed Feb 7, 2024
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

No branches or pull requests

2 participants