Skip to content

all the tests passed #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 12, 2025
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
7 changes: 6 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ quiz:
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
jeremiahwing:
- $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy
- $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2
- $2y$10$bcTYSI0R/3x0pPHcGPAjautopYx2MD8mJPqf2nXKMJeteoIwJQrQm
- $2y$10$V8pMtwgtZe725nPssrr8kejs4Evh/Vi3ia8RulylOQ8x2YV4tJ4LO
jasonwatson:
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
83 changes: 83 additions & 0 deletions lesson_03/quiz/src/quizzes/jeremiah_wing_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class JeremiahWingQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'jeremiahwing';
}

makeQuizQuestions(): QuizQuestion[] {
return [
JeremiahWingQuiz.makeQuestion0(),
JeremiahWingQuiz.makeQuestion1(),
JeremiahWingQuiz.makeQuestion2(),
JeremiahWingQuiz.makeQuestion3(),
];
}

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What does the SRC element stand for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Source'],
[AnswerChoice.B, 'Script'],
[AnswerChoice.C, 'Style'],
[AnswerChoice.D, 'Section'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What does the git fetch command do?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Downloads objects and refs from another repository'],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Deletes a branch from the repository'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What does the git pull command do?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'Fetches from and integrates with another repository or a local branch',
],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Deletes a branch from the repository'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion3(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
3,
'What does the git push command do?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'Uploads local repository content to a remote repository',
],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Downloads objects and refs from another repository'],
]),
AnswerChoice.UNANSWERED,
);
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Jbeyquiz } from './jbeyquiz.js';
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';

export const Quizzes = Symbol.for('Quizzes');

Expand All @@ -24,6 +25,7 @@ const QUIZ_PROVIDERS = [
DavidAdenaikeQuiz,
KhaylaSaundersQuiz,
RasheedMillerQuiz,
JeremiahWingQuiz,
JasonWatsonQuiz,
];

Expand Down