Add broader Stream API unit tests and VM integration test for edge cases#4615
Closed
shai-almog wants to merge 1 commit intomasterfrom
Closed
Add broader Stream API unit tests and VM integration test for edge cases#4615shai-almog wants to merge 1 commit intomasterfrom
shai-almog wants to merge 1 commit intomasterfrom
Conversation
Collaborator
Author
|
Compared 32 screenshots: 32 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
|
✅ ByteCodeTranslator Quality ReportTest & Coverage
Benchmark Results
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
distinct,skip,limit,toArray, empty-stream semantics, encounter order andnullhandling.Description
StreamApiTestby adding multiple assertions that exercisedistinct(),sorted(),skip(),limit(),toArray(),Stream.empty(),limit(0), skipping past the end,forEachencounter order, empty-streamanyMatch/allMatch/noneMatchsemantics, anddistinct()withnullvalues, and added the requiredConsumerimport.StreamApiIntegrationTest(JUnit) undervm/testswhich dynamically writes and compilesStreamEdgeApp.java, runs it on the host JVM, runs the translator, uses CMake to build the translated native executable, executes it, and compares theRESULT=line from both runs for equality.StreamEdgeApp.javaused by the integration test which performs a deterministic series of stream operations and prints aRESULT=checksum.Testing
StreamApiTestunit tests in the hellocodenameone test suite and they completed successfully.StreamApiIntegrationTestwhich compilesStreamEdgeApp, runs it on JavaSE, translates and builds a native executable, and compared theRESULT=output from JavaSE and the native run; the integration test passed.Codex Task