Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

fixed all requests #57

Merged
merged 9 commits into from
Jun 23, 2021
Merged

fixed all requests #57

merged 9 commits into from
Jun 23, 2021

Conversation

maharajamihir
Copy link
Contributor

Shortly describe your proposed changes:
Tests for BinomialHeap.java

Link any issues if they have led to changes in the request:

sorry for creating another pull request... one year into computer science and i still dont get git :/

Note the (sub-)exercises the tests are meant for:

  • GAD 8 - Binomial Heap: BinomialHeap.java

@CrsiX
Copy link
Collaborator

CrsiX commented Jun 22, 2021

Well, the knowledge how to use git and related tools will come over time, for sure. Thanks for addressing the previously mentioned changes :)
I will have a look into it later on to merge this request, if nobody else has something to comment on it, @N0W0RK?

Copy link
Owner

@N0W0RK N0W0RK left a comment

Choose a reason for hiding this comment

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

I like the improvements. I would ask you to fix the remaining codestyle issues and issues I raised.
The handling of git can be learned, if you need help message me on zulip @konrad Gößmann.

@maharajamihir
Copy link
Contributor Author

maharajamihir commented Jun 22, 2021

The codestyle is complaining about tabs and white characters. I autoformatted it with eclipse. Thats all i can do. I hope this is enough for those simple tests.

Copy link
Owner

@N0W0RK N0W0RK left a comment

Choose a reason for hiding this comment

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

So most of it is alright. I just have issues with the two open conversations. If you tell me why your code in line #83 works the way you want it, I would also resolve that conversation.
The codestyle issues are with your javadoc, where you have * at the end of the line, where just * would be appropriate. The issue with tabs stems from your indentation with spaces in the javadoc, but tabs in code.

@maharajamihir
Copy link
Contributor Author

maharajamihir commented Jun 22, 2021

Line 83:

The method testBigNumbers in general just adds a lot of numbers to the binomial heap. It just tests its min on the way. The real magic is when it starts deleting its min and comparing it to the min of the list. It just keeps adding elements to the datastructures each iteration to hold their size.

Javadoc space:

Unfortunately i dont quite get what u mean by the javadoc spacing. When i autoformat it with eclipse it just goes back to how it was. Does the extra space really matter?
If it does, would you please remove it?

@N0W0RK N0W0RK enabled auto-merge June 22, 2021 22:10
@N0W0RK
Copy link
Owner

N0W0RK commented Jun 22, 2021

Basically, your indents between the stars and the beginning of your comment starting at line #19 use spaces. If you want to learn the reasoning behind this, have a look here.

Sadly I can't edit the file before it is merged onto the repo.

Copy link
Owner

@N0W0RK N0W0RK left a comment

Choose a reason for hiding this comment

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

The package also has to be changed to tests.binomilia

N0W0RK
N0W0RK previously approved these changes Jun 23, 2021
@CrsiX
Copy link
Collaborator

CrsiX commented Jun 23, 2021

I just fixed the small point you mentioned, @N0W0RK. So far, I would say we can just merge the PR (I know that there are some remaining issues with tabs and spaces, but this could be addressed in #49, too).

Thanks, @maharajamihir for the work you did :)

@CrsiX CrsiX disabled auto-merge June 23, 2021 14:48
@N0W0RK N0W0RK enabled auto-merge June 23, 2021 14:59
@CrsiX
Copy link
Collaborator

CrsiX commented Jun 23, 2021

Okay. So, the remaining issues have been fixed now, finally :)
I will merge and close this PR now.

@N0W0RK N0W0RK merged commit e2daa4c into N0W0RK:main Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants