From 8b4d1167ca439505746a5cfac61840b00005e1ee Mon Sep 17 00:00:00 2001 From: bryanasb251 Date: Mon, 10 Mar 2025 22:43:19 +0000 Subject: [PATCH 1/5] finished creating test --- lesson_03/quiz/quiz.yaml | 6 +- .../ bryana_singleton-barnhart_quiz.ts | 61 +++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index f077fd998..a44fa5924 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -5,4 +5,8 @@ quiz: - $2y$10$55EXRjF26JIgebtoH800ZOJecfefvMgHicuxf/rwTENuxiUaFQcNe anotherone: - $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK - - $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa \ No newline at end of file + - $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa + bryanasingletonbarnhart: + - $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK + - $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO + - $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq \ No newline at end of file diff --git a/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts new file mode 100644 index 000000000..9179ddd77 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts @@ -0,0 +1,61 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class Bryanasingletonbarnhart implements QuizQuestionProvider { + getProviderName(): string { + return 'bryanasingletonbarnhart'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + Bryanasingletonbarnhart.makeQuestion0(), + Bryanasingletonbarnhart.makeQuestion1(), + Bryanasingletonbarnhart.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which component is consider the brain?', + new Map([ + [AnswerChoice.A, 'Case'], + [AnswerChoice.B, 'Power Supply'], + [AnswerChoice.C, 'CPU'], + [AnswerChoice.D, 'Motherboard'], + ]), + AnswerChoice.C, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does SDD stand for?', + new Map([ + [AnswerChoice.A, 'Same Day Delivery'], + [AnswerChoice.B, 'Solid State Drive'], + [AnswerChoice.C, 'System Design Document'], + [AnswerChoice.D, 'Software Development Document'], + ]), + AnswerChoice.B, + ); // Replace `UNANSWERED` with the correct answer. + } + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'How many bits is in a byte?', + new Map([ + [AnswerChoice.A, '2'], + [AnswerChoice.B, '40'], + [AnswerChoice.C, '1000'], + [AnswerChoice.D, '8'], + ]), + AnswerChoice.D, + ); // Replace `UNANSWERED` with the correct answer. + } +} \ No newline at end of file From 747f0666773c8968b425c058701ede550406b081 Mon Sep 17 00:00:00 2001 From: bryanasb251 Date: Tue, 11 Mar 2025 12:48:20 +0000 Subject: [PATCH 2/5] Fixed Import on Quiz --- lesson_03/quiz/src/quizzes/quizzes.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index ac82f4600..5da8bb17f 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -1,11 +1,12 @@ import { Module } from '@nestjs/common'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); // Add your quiz provider here. -const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz]; +const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, Bryanasingletonbarnhart]; @Module({ providers: [ From a17bd449e890f828f39650786d335a80437577c7 Mon Sep 17 00:00:00 2001 From: bryanasb251 Date: Tue, 11 Mar 2025 15:36:31 +0000 Subject: [PATCH 3/5] changes to quiz --- lesson_03/quiz/quiz.yaml | 2 -- lesson_03/quiz/src/quizzes/quizzes.module.ts | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 3de4b805e..c0fa57af2 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -6,7 +6,6 @@ quiz: anotherone: - $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK - $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa -lesson_03 bryanasingletonbarnhart: - $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK - $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO @@ -20,4 +19,3 @@ lesson_03 - $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa - $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y - $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C - main diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index a573363de..7deb9689b 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -1,8 +1,7 @@ import { Module } from '@nestjs/common'; +import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; -lesson_03 -import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; @@ -10,14 +9,12 @@ import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); // Add your quiz provider here. - lesson_03 -const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, Bryanasingletonbarnhart]; - const QUIZ_PROVIDERS = [ AnthonyMaysQuiz, AnotherQuiz, MercedesMathewsQuiz, Jbeyquiz, + Bryanasingletonbarnhart, ]; @Module({ From ce0e126c12db234b8120f699ffbcfe5d93e4f877 Mon Sep 17 00:00:00 2001 From: "Anthony D. Mays" Date: Wed, 12 Mar 2025 15:13:40 -0400 Subject: [PATCH 4/5] chore: removes extra space --- lesson_03/quiz/quiz.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index c0fa57af2..d26bf17c5 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -10,7 +10,6 @@ quiz: - $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK - $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO - $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq - computerparts: - $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342 - $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0. From 720429eb3b95f7a09f29b3aab2f121badbee9f0c Mon Sep 17 00:00:00 2001 From: "Anthony D. Mays" Date: Thu, 13 Mar 2025 17:32:59 +0000 Subject: [PATCH 5/5] chore: restores UNANSWERED responses Signed-off-by: Anthony D. Mays --- .../quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts index 9179ddd77..c7b83e600 100644 --- a/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts +++ b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts @@ -28,7 +28,7 @@ export class Bryanasingletonbarnhart implements QuizQuestionProvider { [AnswerChoice.C, 'CPU'], [AnswerChoice.D, 'Motherboard'], ]), - AnswerChoice.C, + AnswerChoice.UNANSWERED, ); // Replace `UNANSWERED` with the correct answer. } @@ -42,7 +42,7 @@ export class Bryanasingletonbarnhart implements QuizQuestionProvider { [AnswerChoice.C, 'System Design Document'], [AnswerChoice.D, 'Software Development Document'], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); // Replace `UNANSWERED` with the correct answer. } private static makeQuestion2(): QuizQuestion { @@ -55,7 +55,7 @@ export class Bryanasingletonbarnhart implements QuizQuestionProvider { [AnswerChoice.C, '1000'], [AnswerChoice.D, '8'], ]), - AnswerChoice.D, + AnswerChoice.UNANSWERED, ); // Replace `UNANSWERED` with the correct answer. } -} \ No newline at end of file +}