Skip to content

Commit

Permalink
Merge pull request #178 from AY2324S2-CS2103T-W12-3/fix-asset-string
Browse files Browse the repository at this point in the history
Fix string representation of asset
  • Loading branch information
aureliony authored Apr 4, 2024
2 parents 6c6d564 + a12de67 commit afa8fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/asset/Asset.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public int hashCode() {
* Format state as text for viewing.
*/
public String toString() {
return "[ " + get() + " ]";
return "[" + get() + "]";
}

}
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/model/asset/AssetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void equals() {

@Test
public void toString_correctStringRepresentation_success() {
assertEquals(Asset.of("name").toString(), "[ name ]");
assertEquals(Asset.of("name").toString(), "[name]");
}

}

0 comments on commit afa8fb6

Please sign in to comment.