Creating a new genre with a comma in the name may be saved incorrectly into the text file. This might cause duplicates in the genre list and the unintended splitting of genres.
Steps to reproduce:
Start up the .jar file and create a new book (e.g.add book).
Set the genre of that book using set-genre 1 then input Fiction,Fiction to the following prompt.
Creating a new genre with a comma in the name may be saved incorrectly into the text file. This might cause duplicates in the genre list and the unintended splitting of genres.
Steps to reproduce:
.jar
file and create a new book (e.g.add book
).set-genre 1
then inputFiction,Fiction
to the following prompt.bye
and relaunch the file.list-genre
to observe the genre splittingImages of steps 1 to 3:
Image of step 4:
[original: nus-cs2113-AY2324S2/pe-interim#1946] [original labels: type.FunctionalityBug severity.Medium]