Closed yuujinleee closed 3 years ago
4/1 5:16에 테스트한 Output 복붙
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project
InputEmptyError : No argument has passed. 2 arguments are required. (InputStr1 InputStr2)
Error code: 1
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project Drama
InputNumError : Only 1 input has passed. 2 arguments are required.
Error code: 2
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project Drama Scientist Scientist
InputNumError : More than 2 arguments have passed. 2 arguments are required.
Error code: 3
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project "|Adventure|Action" Scientist
InputInvalidError : Entered genre input is invalid.
Error code: 4
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project "Adventure|Action|" Scientist
InputInvalidError : Entered genre input is invalid.
Error code: 4
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project "Adventure|Action|Horrrror" Scientist
InputInvalidError : Entered genre (horrrror) doesn't exist.
Error code: 5
약간 마지막 말이 이상한 것 같긴 한데 (실제론 other rating 인데 librarian이라 나와서..?) 큰 문제는 없을 듯?
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project Adventure Librarian
InputInvalidWarning : Entered occupation doesn't exist. Rating by 'other' is shown instead.
The rating of adventure rated by librarian : 3.43
### Error code: 7 (장르에 해당하는 영화X)
> 현재 Error code 8 로 계산 되어서 나옴. 그냥 이렇게 놔두고 설명을 수정하면 될 듯
```bash
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project "War|Crime" Academic
NoDBError : Rating data matching the input pair doesn't exist.
Error code: 8 ➡️ 7로 수정됌
yujinlee@Yujins-MacBook-Pro CSE364_Project % java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project "Action|Animation|Children's|Sci-Fi|Thriller|War" retired
NoDBError : Rating data matching the input pair doesn't exist.
Error code: 8 ➡️ 7로 수정됌
프린팅 메시지 수정 -> The rating of adventure rated by other
% java -cp target/cse364-project-1.0-SNAPSHOT.jar group11.project Adventure Librarian
InputInvalidWarning : Entered occupation doesn't exist. Rating by 'other' is shown instead.
The rating of adventure rated by other : 3.43
You can check the final version of this info in README
Error code 종류
Possible errors thrown by invalid user input.
Table 1 Invalid input errors
Table 2 Invalid input warning
Table 3 No data exist error
Error code 용 Test Input
Error code : 1~3 (각각 인풋 0 / 1 / 3개 이상)
Error code: 4~6 (현재 코드에 있는 부분에서 프린팅 포맷만 맞추면 될 듯..?)
Error code: 7 (장르에 해당하는 영화X)
Error code: 8 (장르/직업 인풋에 해당하는 rating X)
_Originally posted by @yuujinleee in https://github.com/sirin05137/CSE364_Project/issues/18#issuecomment-811278004_
참고자료