forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
735 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
src/test/data/JsonSerializableStatsTest/invalidDislikeWeme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"_comment": "Weme save file which contains the same Meme values as in TypicalMemes#getTypicalMemes() and same Template values as in TypicalTemplates#getTypicalTemplates()", | ||
"memes" : [ { | ||
"filePath": "src/test/data/memes/charmander_meme.jpg", | ||
"tagged" : [ "charmander" ], | ||
"description" : "A meme about Char and charmander.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/doge_meme.jpg", | ||
"tagged" : ["doge"], | ||
"description" : "A meme about doge.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/joker_meme.jpg", | ||
"tagged" : ["joker"], | ||
"description" : "A meme about joker.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/toy_meme.jpg", | ||
"tagged" : ["toy"], | ||
"description" : "A toy story meme.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/pikachu_meme.png", | ||
"tagged" : ["pikachu"], | ||
"description" : "Pikachu", | ||
"isArchived": true | ||
}], | ||
"templates" : [ { | ||
"name" : "Drake Reaction", | ||
"filePath": "src/test/data/templates/drake_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Is This", | ||
"filePath": "src/test/data/templates/is_this_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Quiz Kid", | ||
"filePath": "src/test/data/templates/quiz_kid_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Surprised Pikachu", | ||
"filePath": "src/test/data/templates/pikachu_template.jpg", | ||
"isArchived": true | ||
} ], | ||
"stats" : { | ||
"likeMap" : { | ||
"src/test/data/memes/charmander_meme.jpg" : 1, | ||
"src/test/data/memes/doge_meme.jpg" : 2, | ||
"src/test/data/memes/joker_meme.jpg" : 0, | ||
"src/test/data/memes/toy_meme.jpg" : 0 | ||
}, | ||
"dislikeMap" : { | ||
"src/test/data/memes/charmander_meme.jpg" : 0, | ||
"src/test/data/memes/doge_meme.jpg" : 0, | ||
"src/test/data/memes/joker_meme.jpg" : -1, | ||
"src/test/data/memes/toy_meme.jpg" : 2 | ||
} | ||
}, | ||
"records" : { | ||
"pathRecords" : [ | ||
"/home/me/Pictures/weme.jpg" | ||
], | ||
"descriptionRecords" : [ | ||
"OMG my favorite meme!!!" | ||
], | ||
"tagRecords" : [ | ||
"[CS2103]" | ||
], | ||
"nameRecords" : [ | ||
"disaster girl" | ||
], | ||
"textRecords" : [ | ||
"lol" | ||
] | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
src/test/data/JsonSerializableStatsTest/invalidLikeWeme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"_comment": "Weme save file which contains the same Meme values as in TypicalMemes#getTypicalMemes() and same Template values as in TypicalTemplates#getTypicalTemplates()", | ||
"memes" : [ { | ||
"filePath": "src/test/data/memes/charmander_meme.jpg", | ||
"tagged" : [ "charmander" ], | ||
"description" : "A meme about Char and charmander.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/doge_meme.jpg", | ||
"tagged" : ["doge"], | ||
"description" : "A meme about doge.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/joker_meme.jpg", | ||
"tagged" : ["joker"], | ||
"description" : "A meme about joker.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/toy_meme.jpg", | ||
"tagged" : ["toy"], | ||
"description" : "A toy story meme.", | ||
"isArchived": false | ||
}, { | ||
"filePath": "src/test/data/memes/pikachu_meme.png", | ||
"tagged" : ["pikachu"], | ||
"description" : "Pikachu", | ||
"isArchived": true | ||
}], | ||
"templates" : [ { | ||
"name" : "Drake Reaction", | ||
"filePath": "src/test/data/templates/drake_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Is This", | ||
"filePath": "src/test/data/templates/is_this_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Quiz Kid", | ||
"filePath": "src/test/data/templates/quiz_kid_template.jpg", | ||
"isArchived": false | ||
}, { | ||
"name" : "Surprised Pikachu", | ||
"filePath": "src/test/data/templates/pikachu_template.jpg", | ||
"isArchived": true | ||
} ], | ||
"stats" : { | ||
"likeMap" : { | ||
"src/test/data/memes/charmander_meme.jpg" : -1, | ||
"src/test/data/memes/doge_meme.jpg" : 2, | ||
"src/test/data/memes/joker_meme.jpg" : 0, | ||
"src/test/data/memes/toy_meme.jpg" : 0 | ||
}, | ||
"dislikeMap" : { | ||
"src/test/data/memes/charmander_meme.jpg" : 0, | ||
"src/test/data/memes/doge_meme.jpg" : 0, | ||
"src/test/data/memes/joker_meme.jpg" : 1, | ||
"src/test/data/memes/toy_meme.jpg" : 2 | ||
} | ||
}, | ||
"records" : { | ||
"pathRecords" : [ | ||
"/home/me/Pictures/weme.jpg" | ||
], | ||
"descriptionRecords" : [ | ||
"OMG my favorite meme!!!" | ||
], | ||
"tagRecords" : [ | ||
"[CS2103]" | ||
], | ||
"nameRecords" : [ | ||
"disaster girl" | ||
], | ||
"textRecords" : [ | ||
"lol" | ||
] | ||
} | ||
} |
Oops, something went wrong.