File tree Expand file tree Collapse file tree
exercises/practice/error-handling/.meta Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,13 @@ for exercise_type in 'concept' 'practice'; do
1616 declare -A files
1717 for file_type in ' editor' ' solution' ; do
1818 for file in $( echo " ${config_files} " | jq -r " .${file_type} | @sh" ) ; do
19- files[${file} ]=true
19+ if [[ " ${file} " != null ]]; then
20+ if [[ " ${file_type} " == ' editor' && $( grep ' UnsupportedOperationException' < " ${exercise_path} /${file// \' / } " ) != ' ' ]]; then
21+ echo " ${file} should be editable"
22+ exit 1
23+ fi
24+ files[${file} ]=true
25+ fi
2026 done
2127 done
2228 mapfile -t java_files < <( find " ${exercise_path} /src/main" -type f -name ' *.java' )
Original file line number Diff line number Diff line change 1717 ],
1818 "files" : {
1919 "solution" : [
20- " src/main/java/ErrorHandling.java"
21- ],
22- "editor" : [
20+ " src/main/java/ErrorHandling.java" ,
2321 " src/main/java/CustomCheckedException.java" ,
2422 " src/main/java/CustomUncheckedException.java"
2523 ],
You can’t perform that action at this time.
0 commit comments