Skip to content

first commit#7

Open
ghost wants to merge 6 commits intomasterfrom
SimonMikey
Open

first commit#7
ghost wants to merge 6 commits intomasterfrom
SimonMikey

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jan 23, 2017

  • code
  • test
  • review

Administrator and others added 4 commits January 23, 2017 14:30
Removed the unnecessary constructor.
Removed unnecessary constructor
Copy link
Copy Markdown
Collaborator

@KQL1N KQL1N left a comment

Choose a reason for hiding this comment

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

Have a look at that array index problem. I could be wrong if your testing if running fine, but I'm not sure how it would work okay.

Comment thread src/main/arraytests.java Outdated
@Test
public void test() {
MedTask med = new MedTask();
int[] newArray = new int[3];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

On your arraytests JUnit test case, you are initializing newArray to length 3, but then setting
"newArray[3] = 40;" even though [3] would be the fourth index.

Comment thread src/main/MedTask.java
package tests;

public class MedTask
{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Removed an unnecessary constructor

Comment thread src/main/MedTask.java
{
public int[] arrayReverse(int[] newArray)
{
int[] tempArray = new int[4];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Removed an unnecessary constructor

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.

1 participant