Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix non-prefix agnostic test #1436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olabusayoT
Copy link
Contributor

  • fix test that was failing because a scala Buffer doesn't automatically convert to a Seq anymore

Deprecation/Compatibility:
Note that some changes in 2.13 may affect the order of prefixes with the same namespace and may also cause them to appear uniformly but interchangeably. Ex: xmlns="urn:bin" xmlns:b="urn:bin" <element/> may become xmlns:b="urn:bin" xmlns="urn:bin" <b:element/> and vice versa.

DAFFODIL-2152

@olabusayoT olabusayoT force-pushed the daf-2152-fix-non-prefix-agnostic-test branch 4 times, most recently from 884a38b to 9e0f821 Compare February 14, 2025 03:12
- fix test to make prefix agnostic
- fix test that was failing because a scala Buffer doesn't automatically convert to a Seq anymore
- update nullary method with no side effects to remove paren
- fix hard coded scala version in integration tests

Deprecation/Compatibility:
Note that some changes in 2.13 may affect the order of prefixes with the same namespace and may also cause them to appear uniformly but interchangeably. Ex: `xmlns="urn:bin" xmlns:b="urn:bin" <element/>` may become  `xmlns:b="urn:bin" xmlns="urn:bin" <b:element/>` and vice versa.

DAFFODIL-2152
@olabusayoT olabusayoT force-pushed the daf-2152-fix-non-prefix-agnostic-test branch from 9e0f821 to 997a3a1 Compare February 14, 2025 04:52
Copy link
Contributor

@jadams-tresys jadams-tresys left a comment

Choose a reason for hiding this comment

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

+1

Comment on lines -71 to +77
def devNull(): String = if (isWindows) "NUL" else "/dev/null"
def devNull: String = if (isWindows) "NUL" else "/dev/null"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a problem but I have to laugh at the irony of removing parens from function definitions and adding them to the function calls.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well this one gave me the option to remove the parens from the def or add it to the call so I went with the former :D

Copy link
Contributor

@mbeckerle mbeckerle left a comment

Choose a reason for hiding this comment

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

+1

@@ -50,7 +50,7 @@ public void testPrimaryConstructor() {
false,
NoRoundTrip$.MODULE$,
"off",
CollectionConverters.asScala(Arrays.asList("daffodil", "ibm")),
CollectionConverters.asScala(Arrays.asList("daffodil", "ibm")).toSeq(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does toSeq need () arguments? It's a pure conversion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's because we're in a Java file

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants