Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IzN432 committed Oct 18, 2024
1 parent 33d8208 commit 1a9281e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public void equals() {
assertTrue(identicalCommand.equals(baseCommand));

// different values -> returns false
UnassignPiecesCommand differentIndexCommand = new UnassignPiecesCommand(INDEX_SECOND_STUDENT, bensonPianoPieces);
UnassignPiecesCommand differentIndexCommand = new UnassignPiecesCommand(INDEX_SECOND_STUDENT,
bensonPianoPieces);
assertFalse(baseCommand.equals(differentIndexCommand));

UnassignPiecesCommand differentPianoPiecesCommand = new UnassignPiecesCommand(INDEX_FIRST_STUDENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public void parse_invalidPreamble_failure() {
assertParseFailure(parser, "-1" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "0" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "1 r" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "1 i/s" + PIANO_PIECE_DESC_BEETHOVEN,
invalidFormatMessage);
assertParseFailure(parser, "1 i/s" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
}
@Test
public void parse_invalidPianoPiece_failure() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import java.util.List;
import java.util.stream.Collectors;

import keycontacts.logic.commands.UnassignPiecesCommand;
import org.junit.jupiter.api.Test;

import keycontacts.commons.core.index.Index;
Expand All @@ -28,6 +27,7 @@
import keycontacts.logic.commands.HelpCommand;
import keycontacts.logic.commands.ListCommand;
import keycontacts.logic.commands.ScheduleCommand;
import keycontacts.logic.commands.UnassignPiecesCommand;
import keycontacts.logic.parser.exceptions.ParseException;
import keycontacts.model.lesson.RegularLesson;
import keycontacts.model.pianopiece.PianoPiece;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public void parse_invalidPreamble_failure() {
assertParseFailure(parser, "-1" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "0" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "1 r" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
assertParseFailure(parser, "1 i/s" + PIANO_PIECE_DESC_BEETHOVEN,
invalidFormatMessage);
assertParseFailure(parser, "1 i/s" + PIANO_PIECE_DESC_BEETHOVEN, invalidFormatMessage);
}
@Test
public void parse_invalidPianoPiece_failure() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class SampleDataUtilTest {
public void getSampleDirectory_success() {
SampleDataUtil.getSampleStudentDirectory();
}
}
}

0 comments on commit 1a9281e

Please sign in to comment.