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

remove-high-level-inner-classes.xsl:27-28: Create... #3267

Open
0pdd opened this issue Jul 15, 2024 · 14 comments
Open

remove-high-level-inner-classes.xsl:27-28: Create... #3267

0pdd opened this issue Jul 15, 2024 · 14 comments

Comments

@0pdd
Copy link

0pdd commented Jul 15, 2024

The puzzle 1249-cbc24ee5 from #1249 has to be resolved:

@todo #1249:90min Create xmir2xmir tests. This tests should be represented in yaml file and contain xsls,
input(xmir) and output(xmir) sections. Add link to corresponding xmir2xmir test here as documentation -->

The puzzle was created by Yegor Bugayenko on 15-Jul-24.

Estimate: 90 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Copy link

@0pdd thanks for the report, here is a feedback:

  • The todo message is not clear about the location or format of the yaml file that should contain the tests. It could be improved by specifying where the file should be located or what its name should be.
  • The instruction to 'add link to corresponding xmir2xmir test here as documentation' is vague. It's not clear where 'here' is. This could be clarified by specifying where exactly the link should be added.
  • The todo doesn't specify what 'xmir2xmir tests' are or why they're needed. This could be improved by providing a brief explanation of these tests or linking to some documentation about them.

Please fix the bug report in order it to get resolved faster.
Analyzed with gpt-4

@0pdd
Copy link
Author

0pdd commented Jul 15, 2024

@0pdd thanks for the report, here is a feedback: * The todo message is not clear about the location ...

I see you're talking to me, but I can't reply since I'm not a chat bot.

@levBagryansky
Copy link
Member

@maxonfjvipon me

@levBagryansky
Copy link
Member

@yegor256 let's transfer it to xax repo. I would like to create alternative yaml test cases:

# yaml
---
xsls:
  - /org/eolang/maven/pre/align-test-classes.xsl
before:
  <Some ML>
after:
  <Another xml>

Such tests would extend documentation of xsl's.

@yegor256
Copy link
Member

@maxonfjvipon please, help here

@levBagryansky
Copy link
Member

@maxonfjvipon Can you transfer?

@maxonfjvipon
Copy link
Member

@levBagryansky why do you want to create xmir2xmir test?

@levBagryansky
Copy link
Member

levBagryansky commented Jul 16, 2024

@maxonfjvipon I believe that code examples in comments are bad decision (they lose relevance quickly). It is much better to document them via tests.

@maxonfjvipon
Copy link
Member

@levBagryansky comparing XML just by simple text matching is a bad idea because of a lot of reasons, for example attributes can switch places and so on. That's why we use XPATH and that's the main purpose of XAX repo

@levBagryansky
Copy link
Member

levBagryansky commented Jul 16, 2024

@maxonfjvipon
It's definitely better than writing input/output in the comments. Updating xsl that has such test, programmer will update it's test.
But perhaps the corresponding infra for test should be in other place.

@maxonfjvipon
Copy link
Member

@levBagryansky comments with documentation in XSL are desirable but not mandatory. You're right - the main "documentation" is tests. But we already have mechanism of XML validation - XPATH, we also have infrastructure for it in eo-runtime.

@levBagryansky
Copy link
Member

@maxonfjvipon We write such input/output in the comments. Thus, xax does not fit for such cases

@maxonfjvipon
Copy link
Member

@levBagryansky as I said - input/output is not mandatory, you should write at least "something" so next user understand what the transformation does

@levBagryansky
Copy link
Member

@yegor256 please help

levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 6, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 7, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 7, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 7, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 7, 2024
levBagryansky added a commit to levBagryansky/eo that referenced this issue Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants