Skip to content

Commit

Permalink
Tests that need adjustments #33
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Mar 8, 2024
1 parent 6bf5954 commit c7a1757
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion courses/loops/count-backwards-with-a-for-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ console.log(ourArray);

سيحتوي `ourArray` الآن على `[10، 8، 6، 4، 2]`.

```js


```

<div class="quiz">
نعتذر عن عدم وجود اختبار لهذا الدرس حالياً. نحن نعمل بجد لإعداد اختبارات لجميع الدروس وسنقوم بتوفيرها في أقرب وقت ممكن.
قم بتعويض الفراغات في الكود الموجود في المحرر لطباعة الأرقام الزوجية بين 10 و 0 .
</div>
3 changes: 3 additions & 0 deletions precodes/loops/count-backwards-with-a-for-loop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (let i = ___; i > ___; i -= ___) {
console.log(i);
}
9 changes: 9 additions & 0 deletions testcases/loops/count-backwards-with-a-for-loop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// for (let i = ___; i > ___; i -= ___) {
// console.log(i);
// }
if (code.include('for (let i = 10; i > 0; i -= 2) {')) { // TODO: convert to regex
isPass = true;
} else {
isPass = false;
feedback = 'The code is not a for loop that counts backwards.';
}

0 comments on commit c7a1757

Please sign in to comment.