Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions mobile-app/integration_test/test_runner/curriculum_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ void main() {
// 'javascript-algorithms-and-data-structures',
'the-odin-project',
'full-stack-developer',

// Python SBs
// 'scientific-computing-with-python',
];

List<String> publicFwdBlocks = [
Expand Down Expand Up @@ -143,7 +146,37 @@ void main() {
'lab-sorting-visualizer',
'workshop-fcc-authors-page',
'lab-fcc-forum-leaderboard',
'lab-weather-app'
'lab-weather-app',

// Python Chapter
// 'workshop-caesar-cipher',
// 'lab-rpg-character',
// 'workshop-pin-extractor',
// 'lab-number-pattern-generator',
// 'workshop-placeholder-dictionaries-and-sets',
// 'lab-placeholder-dictionaries-and-sets',
// 'lab-isbn-validator',
// 'workshop-placeholder-classes-and-objects',
// 'lab-budget-app',
// 'workshop-placeholder-oop-1',
// 'lab-placeholder-oop-1',
// 'workshop-placeholder-oop-2',
// 'lab-polygon-area-calculator',
// 'workshop-placeholder-oop-3',
// 'lab-placeholder-oop-3',
// 'workshop-linked-list-class',
// 'lab-hash-table',
// 'workshop-binary-search',
// 'lab-bisection-method',
// 'workshop-merge-sort',
// 'lab-quicksort',
// 'lab-selection-sort',
// 'lab-luhn-algorithm',
// 'workshop-shortest-path-algorithm',
// 'lab-adjacency-list-matrix-converter',
// 'workshop-breadth-first-search',
// 'lab-depth-first-search',
// 'lab-nth-fibonacci-number'
];

String curriculumFilePath = 'assets/learn/curriculum.json';
Expand Down Expand Up @@ -183,7 +216,7 @@ void main() {
editorChallengeTypes.add(currChallenge['challengeType']);

// Skip non-editor challenges
if (![0, 1, 5, 6, 14, 25, 26]
if (![0, 1, 5, 6, 14, 25, 26, 20, 23, 27, 29]
.contains(currChallenge['challengeType'])) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class ChallengeTemplateView extends StatelessWidget {
case 1:
case 14:
case 20:
case 23:
case 25:
case 26:
return ChallengeView(
Expand Down
13 changes: 13 additions & 0 deletions mobile-app/lib/ui/views/learn/test_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ return testRes;
}

return babelRes?.value ?? challengeFile;
case 20:
case 23:
case 27:
case 29:
// Python challenges do not require transpilation, return the file as is.
return challengeFile;
default:
String parsedWithStyleTags =
await fileService.parseCssDocumentsAsStyleTags(
Expand Down Expand Up @@ -106,6 +112,8 @@ return testRes;
return 'javascript';
case 20:
case 23:
case 27:
case 29:
return 'python';
}

Expand All @@ -118,6 +126,11 @@ return testRes;
case 1:
case 26:
return Ext.js;
case 20:
case 23:
case 27:
case 29:
return Ext.py;
default:
return Ext.html;
}
Expand Down
Loading