Skip to content

Add DList tests #356

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

Merged
merged 1 commit into from
Aug 22, 2018
Merged

Add DList tests #356

merged 1 commit into from
Aug 22, 2018

Conversation

gliptak
Copy link
Contributor

@gliptak gliptak commented Aug 21, 2018

Signed-off-by: Gábor Lipták gliptak@gmail.com

@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #356 into master will increase coverage by 0.25%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #356      +/-   ##
==========================================
+ Coverage   45.23%   45.49%   +0.25%     
==========================================
  Files         176      176              
  Lines        9242     9242              
  Branches      527      527              
==========================================
+ Hits         4181     4205      +24     
+ Misses       4875     4855      -20     
+ Partials      186      182       -4
Impacted Files Coverage Δ
core/src/main/java/fj/data/Stream.java 69.23% <0%> (+0.34%) ⬆️
core/src/main/java/fj/data/Array.java 68.58% <0%> (+0.52%) ⬆️
core/src/main/java/fj/data/Set.java 83.24% <0%> (+0.55%) ⬆️
core/src/main/java/fj/Ord.java 53.78% <0%> (+3.78%) ⬆️
core/src/main/java/fj/data/DList.java 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01d21bf...f1801d3. Read the comment docs.

@Test
public void testListDList() {
DList<Integer> d = listDList(List.range(0, 1000));
assertThat(d.toJavaList(), is(d.run().toJavaList()));
Copy link
Member

Choose a reason for hiding this comment

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

instead of testing assertThat(d.toJavaList(), is(d.run().toJavaList())); (that only check that toJavaList() is an alias of run().toJavaList()) I think we better test something like
assertThat(d.toJavaList(), is(List.range(0, 1000).toJavaList()));
(same for below methods)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: Gábor Lipták <gliptak@gmail.com>
@jbgi jbgi merged commit 1891fef into functionaljava:master Aug 22, 2018
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.

3 participants