From b90ce3452e41ed92fc028176199cdf261e8aabf8 Mon Sep 17 00:00:00 2001 From: camperbot Date: Wed, 8 Nov 2023 19:50:49 +0530 Subject: [PATCH] chore(i18n,learn): processed translations (#52286) --- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- ...ality-with-.deepequal-and-.notdeepequal.md | 2 +- .../compare-the-properties-of-two-elements.md | 2 +- .../learn-how-javascript-assertions-work.md | 2 +- .../test-for-truthiness.md | 2 +- .../test-if-a-string-contains-a-substring.md | 2 +- ...f-a-value-falls-within-a-specific-range.md | 2 +- .../test-if-a-value-is-a-string.md | 2 +- .../test-if-a-value-is-an-array.md | 2 +- ...ue-is-of-a-specific-data-structure-type.md | 2 +- ...st-if-a-variable-or-function-is-defined.md | 2 +- .../test-if-an-array-contains-an-item.md | 2 +- .../test-if-an-object-has-a-property.md | 2 +- ...-object-is-an-instance-of-a-constructor.md | 2 +- .../use-assert.isok-and-assert.isnotok.md | 2 +- ...se-regular-expressions-to-test-a-string.md | 2 +- ...se-the-double-equals-to-assert-equality.md | 2 +- ...triple-equals-to-assert-strict-equality.md | 2 +- .../problem-247-squares-under-a-hyperbola.md | 2 +- .../problem-259-reachable-numbers.md | 20 +++++++++---------- .../problem-260-stone-game.md | 14 ++++++------- 182 files changed, 197 insertions(+), 197 deletions(-) diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index dce3842b690..305c722aa08 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 9f141e9c038..e50dc1e64dd 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index c3021aaf31e..710c1c089bd 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ When you are done, make sure a working demo of your project is hosted somewhere # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 3701b31bc01..45383fef1dd 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index fca2f5c03fa..452892eb03b 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 9a4011b0a3f..fef61aca946 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ Asserts that the `actual` is equal to `expected`, to within a +/- `delta` range. # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). Choose the minimum range (3rd parameter) to make the test always pass. It should be less than 1. diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index ed496b279de..ddd68bf4d17 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index 33494f9018f..9daaa61a403 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index ec0a6859699..316715fb949 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index ee0ccb85d39..761ee39ac78 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index d82e11e7d65..8ff22addbd3 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index 91eb9dc3687..7d6c89ae1e8 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index 946c69cfe43..025c646587c 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index ee9e6d2146c..0ec2c4218d6 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ To learn more about truthy and falsy values, try our -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index 4e44847044a..45c51a6031e 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ dashedName: assert-deep-equality-with--deepequal-and--notdeepequal # --instructions-- -在 `tests/1_unit-tests.js` 中,在標有 `#7` 的 `Equality` 套件裏,將每個 `assert` 替換成 `assert.deepEqual` 或 `assert.notDeepEqual`,讓測試通過(應該返回 `true`)。 不要改變傳入斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). 不要改變傳入斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index e473421d474..bf641bae769 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ dashedName: compare-the-properties-of-two-elements # --instructions-- -在 `tests/1_unit-tests.js` 中,在標有 `#8` 的 `Comparisons` 套件裏,將每個 `assert` 改成 `assert.isAbove` 或 `assert.isAtMost` 方法,讓測試通過(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index ea566e96900..fd83def4dac 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ dashedName: learn-how-javascript-assertions-work # --instructions-- -在 `tests/1_unit-tests.js` 文件下 `Basic Assertions` suite 內註釋爲 `#1` 的地方,將每一個 `assert` 更改爲 `assert.isNull` 或 `assert.isNotNull`,以使測試通過(應該返回 `true`)。 不要修改傳入斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). 不要修改傳入斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 5533810b717..46eba5b5e3b 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中標註爲 `#4` 的測試下,修改每個 `assert` 爲 `assert.isTrue` 或 `assert.isNotTrue`,通過測試(結果應爲 `true`)。 不要修改傳入斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). 不要修改傳入斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index 39791a09696..9ded4e0d8cc 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ dashedName: test-if-a-string-contains-a-substring # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件裏標有 `#14` 的測試下,將每個 `assert` 改成 `assert.include` 或 `assert.notInclude` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 6d41a203c14..332bbff1f04 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ dashedName: test-if-a-value-falls-within-a-specific-range # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Comparisons` 套件裏標有 `#10` 的測試中,將每個 `assert` 改成 `assert.approximately`,讓測試通過(結果應該返回 `true`)。 +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). 選擇最小範圍(第三個參數)來通過所有測試。 它應該小於 1。 diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index 0d314f037df..4fd5e4968f6 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-a-string # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件裏標有 `#13` 的測試下,將每個 `assert` 改成 `assert.isString` 或 `assert.isNotString` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index 9b632a52fca..2db2a49e74d 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ dashedName: test-if-a-value-is-an-array # --instructions-- -在 `tests/1_unit-tests.js` 中,`Arrays` 套件裏標有 `#11` 的測試下,將每個 `assert` 改成 `assert.isArray` 或 `assert.isNotArray` 方法,通過測試(結果應該返回 `true`)。 不要改變傳入斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). 不要改變傳入斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index 05743ae1ddb..deaac27a6ba 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-of-a-specific-data-structure-type # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件裏標有 `#17` 的測試下,將每個 `assert` 改成 `assert.typeOf` 或 `assert.notTypeOf` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index ebd071fbbbe..f6749a9ab40 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ dashedName: test-if-a-variable-or-function-is-defined # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中標註爲 `#2` 的測試下,修改每個 `assert` 爲 `assert.isDefined()` 或 `assert.isUndefined()`,通過測試(結果應爲 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index 2dcc99b2ce0..353c1f03e4c 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ dashedName: test-if-an-array-contains-an-item # --instructions-- -在 `tests/1_unit-tests.js` 中,`Arrays` 套件裏標有 `#12` 的測試下,將每個 `assert` 改成 `assert.include` 或 `assert.notInclude` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index 5c39797a9a5..9eb9cac9f83 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-has-a-property # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件裏標有 `#16` 的測試下,將每個 `assert` 改成 `assert.property` 或 `assert.notProperty` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index 09f91d9329d..cf625849e2d 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-is-an-instance-of-a-constructor # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件裏標有 `#18` 的測試下,將每個 `assert` 改成 `assert.instanceOf` 或 `assert.notInstanceOf` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index c5a05ddb2c4..9d8bccd9acd 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ dashedName: use-assert-isok-and-assert-isnotok # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中標註爲 `#3` 的測試下,修改每個 `assert` 爲 `assert.isOk()` 或 `assert.isNotOk()`,通過測試(結果應爲 `true`)。 不要修改傳入斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#3` in the `Basic Assertions` suite, change each `assert` to either `assert.isOk()` or `assert.isNotOk()` to make the test pass (should evaluate to `true`). 不要修改傳入斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md index b4050f60c8d..082e1527f35 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md @@ -14,7 +14,7 @@ dashedName: use-regular-expressions-to-test-a-string # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件裏標有 `#15` 的測試下,將每個 `assert` 改成 `assert.match` 或 `assert.notMatch` 方法,通過測試(結果應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md index e16ff545222..2410a2a8785 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-double-equals-to-assert-equality # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Equality` 套件裏標有 `#5` 的測試裏,將每個 `assert` 改爲 `assert.equal` 或 `assert.notEqual`,通過測試(應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md index 9edeb79033e..b0e46b05568 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-triple-equals-to-assert-strict-equality # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Equality` 套件裏標有 `#6` 的測試下,將每個 `assert` 改爲 `assert.strictEqual` 或 `assert.notStrictEqual`,讓測試通過(應該返回 `true`)。 不要修改傳給斷言的參數。 +Within `tests/1_unit-tests.js` under the test labeled `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). 不要修改傳給斷言的參數。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md b/curriculum/challenges/chinese-traditional/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md index d84036f8701..63433a02e37 100644 --- a/curriculum/challenges/chinese-traditional/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md +++ b/curriculum/challenges/chinese-traditional/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md @@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square diagram with squares under the hyperbola -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index b6621bccddf..b33d969fd97 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ dashedName: assert-deep-equality-with--deepequal-and--notdeepequal # --instructions-- -在 `tests/1_unit-tests.js` 中,在标有 `#7` 的 `Equality` 套件里,将每个 `assert` 替换成 `assert.deepEqual` 或 `assert.notDeepEqual`,让测试通过(应该返回 `true`)。 不要改变传入断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). 不要改变传入断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index a30d0a006c2..b2d63dd2563 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ dashedName: compare-the-properties-of-two-elements # --instructions-- -在 `tests/1_unit-tests.js` 中,在标有 `#8` 的 `Comparisons` 套件里,将每个 `assert` 改成 `assert.isAbove` 或 `assert.isAtMost` 方法,让测试通过(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index fa9932a86d3..e82f84d1619 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ dashedName: learn-how-javascript-assertions-work # --instructions-- -在 `tests/1_unit-tests.js` 文件下 `Basic Assertions` suite 内注释为 `#1` 的地方,将每一个 `assert` 更改为 `assert.isNull` 或 `assert.isNotNull`,以使测试通过(应该返回 `true`)。 不要修改传入断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). 不要修改传入断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 1a3f0e84480..ef878c4051a 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中标注为 `#4` 的测试下,修改每个 `assert` 为 `assert.isTrue` 或 `assert.isNotTrue`,通过测试(结果应为 `true`)。 不要修改传入断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). 不要修改传入断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index c089bbbfd37..488b3a9aaa4 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ dashedName: test-if-a-string-contains-a-substring # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件里标有 `#14` 的测试下,将每个 `assert` 改成 `assert.include` 或 `assert.notInclude` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 6c7f81167d7..e95b67ce411 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ dashedName: test-if-a-value-falls-within-a-specific-range # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Comparisons` 套件里标有 `#10` 的测试中,将每个 `assert` 改成 `assert.approximately`,让测试通过(结果应该返回 `true`)。 +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). 选择最小范围(第三个参数)来通过所有测试。 它应该小于 1。 diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index 0e9de993e3f..2986d82bae0 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-a-string # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件里标有 `#13` 的测试下,将每个 `assert` 改成 `assert.isString` 或 `assert.isNotString` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index 7bc05c85007..1bbc7380696 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ dashedName: test-if-a-value-is-an-array # --instructions-- -在 `tests/1_unit-tests.js` 中,`Arrays` 套件里标有 `#11` 的测试下,将每个 `assert` 改成 `assert.isArray` 或 `assert.isNotArray` 方法,通过测试(结果应该返回 `true`)。 不要改变传入断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). 不要改变传入断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index 55fbb3e7cd5..ca9218cff3d 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-of-a-specific-data-structure-type # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件里标有 `#17` 的测试下,将每个 `assert` 改成 `assert.typeOf` 或 `assert.notTypeOf` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index a231ca9e5ce..853954ecf29 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ dashedName: test-if-a-variable-or-function-is-defined # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中标注为 `#2` 的测试下,修改每个 `assert` 为 `assert.isDefined()` 或 `assert.isUndefined()`,通过测试(结果应为 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index 117e2f2a0e8..403d0ea7d2b 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ dashedName: test-if-an-array-contains-an-item # --instructions-- -在 `tests/1_unit-tests.js` 中,`Arrays` 套件里标有 `#12` 的测试下,将每个 `assert` 改成 `assert.include` 或 `assert.notInclude` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index 7a49cbc52f6..da2a66d4292 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-has-a-property # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件里标有 `#16` 的测试下,将每个 `assert` 改成 `assert.property` 或 `assert.notProperty` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index b6fa52252e3..c4da9f30734 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-is-an-instance-of-a-constructor # --instructions-- -在 `tests/1_unit-tests.js` 中,`Objects` 套件里标有 `#18` 的测试下,将每个 `assert` 改成 `assert.instanceOf` 或 `assert.notInstanceOf` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index a08a13559ef..8748eef7832 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ dashedName: use-assert-isok-and-assert-isnotok # --instructions-- -在 `tests/1_unit-tests.js` 中,`Basic Assertions` 套件中标注为 `#3` 的测试下,修改每个 `assert` 为 `assert.isOk()` 或 `assert.isNotOk()`,通过测试(结果应为 `true`)。 不要修改传入断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#3` in the `Basic Assertions` suite, change each `assert` to either `assert.isOk()` or `assert.isNotOk()` to make the test pass (should evaluate to `true`). 不要修改传入断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md index b904a6e977c..4bec21d32cc 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md @@ -14,7 +14,7 @@ dashedName: use-regular-expressions-to-test-a-string # --instructions-- -在 `tests/1_unit-tests.js` 中,`Strings` 套件里标有 `#15` 的测试下,将每个 `assert` 改成 `assert.match` 或 `assert.notMatch` 方法,通过测试(结果应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md index 2249ab95e34..ae1857aa166 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-double-equals-to-assert-equality # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Equality` 套件里标有 `#5` 的测试里,将每个 `assert` 改为 `assert.equal` 或 `assert.notEqual`,通过测试(应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md index 032e9968017..a8d6309c90c 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-triple-equals-to-assert-strict-equality # --instructions-- -在 `tests/1_unit-tests.js` 中,在 `Equality` 套件里标有 `#6` 的测试下,将每个 `assert` 改为 `assert.strictEqual` 或 `assert.notStrictEqual`,让测试通过(应该返回 `true`)。 不要修改传给断言的参数。 +Within `tests/1_unit-tests.js` under the test labeled `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). 不要修改传给断言的参数。 # --hints-- diff --git a/curriculum/challenges/chinese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md b/curriculum/challenges/chinese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md index d84036f8701..63433a02e37 100644 --- a/curriculum/challenges/chinese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md +++ b/curriculum/challenges/chinese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md @@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square diagram with squares under the hyperbola -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index 209d72e376e..bd6db104d1b 100644 --- a/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ Para este proyecto, puedes usar el siguiente código inicial en -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index 137cf5f8211..6444df78ec1 100644 --- a/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ Zur Erinnerung: Dieses Projekt ist auf dem folgenden Starterprojekt aufgebaut wo # --instructions-- -Ändere innerhalb `tests/1_unit-tests.js` mit dem gekennzeichneten Test`#7` in der `Equality` Suite, jeden `assert`, zu `assert.deepEqual` oder `assert.notDeepEqual`, um den Test zu bestehen (sollte `true` ausgeben). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden. +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden. # --hints-- diff --git a/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index e581339ae84..eaefbe6cc84 100644 --- a/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/german/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ Zur Erinnerung: Dieses Projekt baut auf dem folgenden Startprojekt bei -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index d6412dbecea..8bada40e711 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partira dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#7`, nella suite `Equality`, cambia ogni asserzione `assert` in `assert.deepEqual` o `assert.notDeepEqual` per far superare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 8c23f990386..a53ebbc9bac 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#8`, nella suite `Comparisons`, cambia ogni `assert` in `assert.isAbove` o `assert.isAtMost` per far superare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index 32b54e58564..a8fb98ff423 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ Quando hai finito, assicurati che una demo funzionante del tuo progetto sia ospi # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#1`, nella suite `Basic Assertions`, cambia ogni asserzione `assert` in `assert.isNull` o `assert.isNotNull` per far superare il test (dovrebbe risultare `true`). Non cambiare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Non cambiare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 0139f4d2ca2..4e6e0351563 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ Esistono anche `isFalse()` e `isNotFalse()`, si comportano in maniera simile all # --instructions-- -All'interno di `tests/1_unit-tests.js` sotto il test etichettato con `#4` nella suite `Basic Assertions`, cambia ogni `assert` con `assert.isTrue` oppure `assert.isNotTrue` per fare passare il test (dovrebbe essere uguale a `true`). Non cambiare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Non cambiare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index 80291f6d5f0..cd2e976641d 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#14`, nella suite `Strings`, cambia ogni asserzione `assert` in `assert.include` o `assert.notInclude` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index bf3e6486a2c..85ea5746d93 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ Asserisce che `actual` sia uguale a `expected`, all'interno di un intervallo di # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#10`, nella suite `Comparisons`, cambia ogni asserzione `assert` in `assert.approximately` per far passare il test (dovrebbe risultare `true`). +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). Scegli l'intervallo minimo (terzo parametro) per far passare sempre il test. Dovrebbe essere inferiore a 1. diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index 8dd526c6d56..f27c7a7f2b7 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#13`, nella suite `Strings`, cambia ogni asserzione `assert` in `assert.isString` o `assert.isNotString` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index ef8ec822004..8c1f8bc559a 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#11`, nella suite `Arrays`, cambia ogni asserzione `assert` in `assert.isArray` o `assert.isNotArray` per far superare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index 4f7b93c46a3..891eb63801f 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#17`, nella suite `Objects`, cambia ogni asserzione `assert` in `assert.typeOf` o `assert.notTypeOf` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index 719259683af..f23121190fe 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#2`, nella suite `Basic Assertions`, cambia ogni asserzione `assert` in `assert.isDefined()` o `assert.isUndefined()` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index c2dc4a9630f..c57715fdef1 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#12`, nella suite `Arrays`, cambia ogni asserzione `assert` in `assert.include` o `assert.notInclude` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index d0cee030b31..6ec7a00e234 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#16`, nella suite `Objects`, cambia ogni asserzione `assert` in `assert.property` o `assert.notProperty` per far passare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index c8307bc55ea..cd518d6b164 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ Come promemoria, questo progetto verrà costruito a partire dalla seguente bozza # --instructions-- -All'interno di `tests/1_unit-tests.js`, sotto il test etichettato con `#18`, nella suite `Objects`, cambia ogni asserzione `assert` in `assert.instanceOf` o `assert.notInstanceOf` per far superare il test (dovrebbe risultare `true`). Non alterare gli argomenti passati alle asserzioni. +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Non alterare gli argomenti passati alle asserzioni. # --hints-- diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index fb2e23442eb..e3bf5cb6683 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ Per saperne di più sui valori veritieri e falsi, prova la nostra sfida -Il diagramma mostra alcuni di questi quadrati etichettati per numero. +The diagram shows some such squares labeled by number. $S_2$ ha un quadrato alla sua sinistra e nessuno sotto, quindi l'indice di $S_2$ è (1, 0). diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index db69ee7ff46..197ceeb253a 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -`tests/1_unit-tests.js` の中の、`Equality` スイート内の `#7` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.deepEqual` または `assert.notDeepEqual` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 8819047592d..dc2ffab400a 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ dashedName: compare-the-properties-of-two-elements # --instructions-- -`tests/1_unit-tests.js` の中の、`Comparisons` スイート内の `#8` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isAbove` または `assert.isAtMost` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index e3525a8ea33..1ad1d6e0f8d 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ Replit を使用する場合は、下記の手順でプロジェクトをセッ # --instructions-- -`tests/1_unit-tests.js` の中で、`Basic Assertions` スイート内の `#1` と書かれているテストについて、それぞれの `assert` を `assert.isNull` または `assert.isNotNull` に変更し、テストを成功させてください (`true` と評価されるようにしてください)。 アサートに渡された引数は変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). アサートに渡された引数は変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 3f82f5f57cd..259ef322de8 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -`tests/1_unit-tests.js` の中の、`Basic Assertions` スイート内の `#4` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isTrue` または `assert.isNotTrue` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index b2fd4002229..5e9ffddbc0d 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ dashedName: test-if-a-string-contains-a-substring # --instructions-- -`tests/1_unit-tests.js` の中の、`Strings` スイート内の `#14` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.include` または `assert.notInclude` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 09b0f78e7dd..cc8f2ca7830 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ dashedName: test-if-a-value-falls-within-a-specific-range # --instructions-- -`tests/1_unit-tests.js` の中の、`Comparisons` スイート内の `#10` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.approximately` に変更してください。 +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). テストを常に成功させるには、最小範囲 (3 番目のパラメータ) を選択してください。 範囲は、1 未満でなければなりません。 diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index 910f6def8ac..5676df2691b 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-a-string # --instructions-- -`tests/1_unit-tests.js` の中の、`Strings` スイート内の `#13` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isString` または `assert.isNotString` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index f9ab1a51ece..f0ba0dd50e1 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ dashedName: test-if-a-value-is-an-array # --instructions-- -`tests/1_unit-tests.js` の中の、`Arrays` スイート内の `#11` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isArray` または `assert.isNotArray` に変更してください。 アサート に渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). アサート に渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index 543acbb063c..8264ec71e23 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-of-a-specific-data-structure-type # --instructions-- -`tests/1_unit-tests.js` の中の、`Objects` スイート内の `#17` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.typeOf` または `assert.notTypeOf` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index 797f0dc05b0..3d128d1cfb0 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ dashedName: test-if-a-variable-or-function-is-defined # --instructions-- -`tests/1_unit-tests.js` の中の、`Basic Assertions` スイート内の `#2` に分類されたテストにおいて、テストに合格にする (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isDefined()` または `assert.isUndefined()` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index e8589d9a397..d306b606f9e 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ dashedName: test-if-an-array-contains-an-item # --instructions-- -`tests/1_unit-tests.js` の中の、`Arrays` スイート内の `#12` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.include` または `assert.notInclude` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index 1c5e02d418a..4cf08b1bc66 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-has-a-property # --instructions-- -`tests/1_unit-tests.js` の中の、`Objects` スイート内の `#16` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.property` または `assert.notProperty` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index d76e8700ef2..6735215421f 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-is-an-instance-of-a-constructor # --instructions-- -`tests/1_unit-tests.js` の中の、`Objects` スイート内の `#18` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.instanceOf` または `assert.notInstanceOf` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index 1412fdacc49..fec0fe1942c 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ dashedName: use-assert-isok-and-assert-isnotok # --instructions-- -`tests/1_unit-tests.js` の中の、`Basic Assertions` スイート内の `#3` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.isOk()` または `assert.isNotOk()` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#3` in the `Basic Assertions` suite, change each `assert` to either `assert.isOk()` or `assert.isNotOk()` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md index 0e42cb72858..85d1741d5be 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md @@ -14,7 +14,7 @@ dashedName: use-regular-expressions-to-test-a-string # --instructions-- -`tests/1_unit-tests.js` の中の、`Strings` スイート内の `#15` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります) ために、それぞれの `assert` を `assert.match` または `assert.notMatch` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md index 05e3ad908d2..7b29ac3c1bc 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-double-equals-to-assert-equality # --instructions-- -`tests/1_unit-tests.js` の中の、`Equality` スイート内の `#5` に分類されたテストにおいて、テストを成功させる (`true` と評価する必要があります)ために、それぞれの `assert` を `assert.equal` または `assert.notEqual` に変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md index 563614664b3..87d623b222b 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-triple-equals-to-assert-strict-equality # --instructions-- -`tests/1_unit-tests.js` 内で、`Equality` スイートの `#6` に分類されるテストにおいて、(`true` と評価する必要がある) テストに合格にするために、各 `assert` を `assert.strictEqual` または `assert.notStrictEqual` のいずれかに変更してください。 アサートに渡された引数を変更しないでください。 +Within `tests/1_unit-tests.js` under the test labeled `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). アサートに渡された引数を変更しないでください。 # --hints-- diff --git a/curriculum/challenges/japanese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md b/curriculum/challenges/japanese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md index d84036f8701..63433a02e37 100644 --- a/curriculum/challenges/japanese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md +++ b/curriculum/challenges/japanese/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md @@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square diagram with squares under the hyperbola -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index 73be19b31b6..bb12a9972f4 100644 --- a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ Lembrando que este projeto está sendo construído a partir do projeto inicial n # --instructions-- -Em `tests/1_unit-tests.js`, no teste classificado como `#7` e na suíte `Equality`, modifique cada `assert` para `assert.deepEqual` ou para `assert.notDeepEqual`, de maneira que cada teste passe (seja avaliado como `true`). Não altere os argumentos passados às afirmações. +Em `tests/1_unit-tests.js`, no teste de número `#7`, no grupo de testes `Equality`, modifique cada `assert` para `assert.deepEqual` ou para `assert.notDeepEqual`, de maneira que cada teste passe (seja avaliado como `true`). Não altere os argumentos passados às afirmações. # --hints-- diff --git a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 7dde62557fd..a9b122de979 100644 --- a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ Lembrando que este projeto está sendo construído a partir do -O diagrama mostra alguns desses quadrados rotulados por número. +The diagram shows some such squares labeled by number. $S_2$ tem um quadrado à sua esquerda e nenhum abaixo, então o índice de $S_2$ é (1, 0). diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index dce3842b690..305c722aa08 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 9f141e9c038..e50dc1e64dd 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index c3021aaf31e..710c1c089bd 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ When you are done, make sure a working demo of your project is hosted somewhere # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index 3701b31bc01..45383fef1dd 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index fca2f5c03fa..452892eb03b 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 9a4011b0a3f..fef61aca946 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ Asserts that the `actual` is equal to `expected`, to within a +/- `delta` range. # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). Choose the minimum range (3rd parameter) to make the test always pass. It should be less than 1. diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index ed496b279de..ddd68bf4d17 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index 33494f9018f..9daaa61a403 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index ec0a6859699..316715fb949 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index ee0ccb85d39..761ee39ac78 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index d82e11e7d65..8ff22addbd3 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index 91eb9dc3687..7d6c89ae1e8 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index 946c69cfe43..025c646587c 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ As a reminder, this project is being built upon the following starter project on # --instructions-- -Within `tests/1_unit-tests.js` under the test labelled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts. # --hints-- diff --git a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index ee9e6d2146c..0ec2c4218d6 100644 --- a/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/swahili/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ To learn more about truthy and falsy values, try our -The diagram shows some such squares labelled by number. +The diagram shows some such squares labeled by number. $S_2$ has one square to its left and none below, so the index of $S_2$ is (1, 0). diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md index 22660dd9c0d..9c2a683b0e6 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md @@ -14,7 +14,7 @@ dashedName: assert-deep-equality-with--deepequal-and--notdeepequal # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#7` в наборі `Equality` змініть кожний `assert` на `assert.deepEqual` або `assert.notDeepEqual`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md index 0240a92b340..beb639e0ba3 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/compare-the-properties-of-two-elements.md @@ -12,7 +12,7 @@ dashedName: compare-the-properties-of-two-elements # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#8` в наборі `Comparisons` змініть кожний `assert` на `assert.isAbove` або `assert.isAtMost`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#8` in the `Comparisons` suite, change each `assert` to either `assert.isAbove` or `assert.isAtMost` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md index 59dc1c70362..ba336dbdc5b 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/learn-how-javascript-assertions-work.md @@ -24,7 +24,7 @@ dashedName: learn-how-javascript-assertions-work # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#1` в наборі `Basic Assertions` змініть кожний `assert` на `assert.isNull` або `assert.isNotNull`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#1` in the `Basic Assertions` suite, change each `assert` to either `assert.isNull` or `assert.isNotNull` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md index aa0fef435f2..2f4b0f58e67 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-for-truthiness.md @@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1'); # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#4` в наборі `Basic Assertions` змініть кожний `assert` на `assert.isTrue` або `assert.isNotTrue`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#4` in the `Basic Assertions` suite, change each `assert` to either `assert.isTrue` or `assert.isNotTrue` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md index 18b40f0ac81..101a35e3df2 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-string-contains-a-substring.md @@ -14,7 +14,7 @@ dashedName: test-if-a-string-contains-a-substring # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#14` в наборі `Strings` змініть кожний `assert` на `assert.include` або `assert.notInclude`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#14` in the `Strings` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md index 42b0effaa1d..dbc22f1704c 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-falls-within-a-specific-range.md @@ -18,7 +18,7 @@ dashedName: test-if-a-value-falls-within-a-specific-range # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#10` в наборі `Comparisons` змініть кожен `assert` на `assert.approximately`, щоб пройти тест (повинен дорівнювати `true`). +Within `tests/1_unit-tests.js` under the test labeled `#10` in the `Comparisons` suite, change each `assert` to `assert.approximately` to make the test pass (should evaluate to `true`). Виберіть мінімальний діапазон (третій параметр) для того, щоб тест завжди проходив. Він повинен бути менший за 1. diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md index 92a631a821e..99e8e97796b 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-a-string # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#13` в наборі `Strings` змініть кожний `assert` на `assert.isString` або `assert.isNotString`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#13` in the `Strings` suite, change each `assert` to either `assert.isString` or `assert.isNotString` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md index 72bcd79dba9..df7282039a0 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-an-array.md @@ -12,7 +12,7 @@ dashedName: test-if-a-value-is-an-array # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#11` в наборі `Arrays` змініть кожний `assert` на `assert.isArray` або `assert.isNotArray`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#11` in the `Arrays` suite, change each `assert` to either `assert.isArray` or `assert.isNotArray` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md index 5ea57c89c07..12dee2359ed 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-value-is-of-a-specific-data-structure-type.md @@ -14,7 +14,7 @@ dashedName: test-if-a-value-is-of-a-specific-data-structure-type # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#17` в наборі `Objects` змініть кожен `assert` на `assert.typeOf` або `assert.notTypeOf`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#17` in the `Objects` suite, change each `assert` to either `assert.typeOf` or `assert.notTypeOf` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md index c641e1af75e..b2d323a5742 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-a-variable-or-function-is-defined.md @@ -12,7 +12,7 @@ dashedName: test-if-a-variable-or-function-is-defined # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#2` в наборі `Basic Assertions` змініть кожний `assert` на `assert.isDefined()` або `assert.isUndefined()`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#2` in the `Basic Assertions` suite, change each `assert` to either `assert.isDefined()` or `assert.isUndefined()` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md index 96945724995..37854201c65 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-array-contains-an-item.md @@ -12,7 +12,7 @@ dashedName: test-if-an-array-contains-an-item # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#12` в наборі `Arrays` змініть кожний `assert` на `assert.include` або `assert.notInclude`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#12` in the `Arrays` suite, change each `assert` to either `assert.include` or `assert.notInclude` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md index c52698fbeea..f29a82ffa97 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-has-a-property.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-has-a-property # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#16` у наборі `Objects` змініть кожний `assert` на `assert.property` або `assert.notProperty`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#16` in the `Objects` suite, change each `assert` to either `assert.property` or `assert.notProperty` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md index 42e117b097d..70b0f7e9439 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor.md @@ -14,7 +14,7 @@ dashedName: test-if-an-object-is-an-instance-of-a-constructor # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#18` в наборі `Objects` змініть кожний `assert` на `assert.instanceOf` або `assert.notInstanceOf`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#18` in the `Objects` suite, change each `assert` to either `assert.instanceOf` or `assert.notInstanceOf` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md index 4e8d0257cbb..4f336ba1a6d 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-assert.isok-and-assert.isnotok.md @@ -16,7 +16,7 @@ dashedName: use-assert-isok-and-assert-isnotok # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#3` в наборі `Basic Assertions` змініть кожний `assert` на `assert.isOk()` або `assert.isNotOk()`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#3` in the `Basic Assertions` suite, change each `assert` to either `assert.isOk()` or `assert.isNotOk()` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md index f2fdbebd6ac..972facaea79 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-regular-expressions-to-test-a-string.md @@ -14,7 +14,7 @@ dashedName: use-regular-expressions-to-test-a-string # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#15` в наборі `Strings` змініть кожний `assert` на `assert.match` або `assert.notMatch`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md index fffbb4670ef..e35c47219ce 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-double-equals-to-assert-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-double-equals-to-assert-equality # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#5` в наборі `Equality` змініть кожний `assert` на `assert.equal` або `assert.notEqual`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md index 3e0ef2db3b5..fcb3000c7ac 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/use-the-triple-equals-to-assert-strict-equality.md @@ -14,7 +14,7 @@ dashedName: use-the-triple-equals-to-assert-strict-equality # --instructions-- -У межах `tests/1_unit-tests.js` під тестом з міткою `#6` в наборі `Equality` змініть кожний `assert` на `assert.strictEqual` або `assert.notStrictEqual`, щоб пройти тест (повинен дорівнювати `true`). Не змінюйте аргументи, передані до тверджень. +Within `tests/1_unit-tests.js` under the test labeled `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). Не змінюйте аргументи, передані до тверджень. # --hints-- diff --git a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md index f6ca33ada25..29bafc6996a 100644 --- a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md +++ b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-247-squares-under-a-hyperbola.md @@ -18,7 +18,7 @@ dashedName: problem-247-squares-under-a-hyperbola рисунок з квадратами під гіперболою -На рисунку зображено декілька таких квадратів, позначених числами. +The diagram shows some such squares labeled by number. $S_2$ має один квадрат зліва та жодного знизу, тому індексом $S_2$ є (1, 0). diff --git a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-259-reachable-numbers.md b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-259-reachable-numbers.md index a39f7af62f4..a28c9ccfbc1 100644 --- a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-259-reachable-numbers.md +++ b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-259-reachable-numbers.md @@ -1,6 +1,6 @@ --- id: 5900f4701000cf542c50ff82 -title: 'Problem 259: Reachable Numbers' +title: 'Завдання 259: досяжні числа' challengeType: 1 forumTopicId: 301907 dashedName: problem-259-reachable-numbers @@ -8,18 +8,18 @@ dashedName: problem-259-reachable-numbers # --description-- -A positive integer will be called reachable if it can result from an arithmetic expression obeying the following rules: +Натуральне число називається досяжним, якщо його можна отримати через арифметичний вираз згідно з такими правилами: -- Uses the digits 1 through 9, in that order and exactly once each. -- Any successive digits can be concatenated (for example, using the digits 2, 3 and 4 we obtain the number 234). -- Only the four usual binary arithmetic operations (addition, subtraction, multiplication and division) are allowed. -- Each operation can be used any number of times, or not at all. -- Unary minus is not allowed. -- Any number of (possibly nested) parentheses may be used to define the order of operations. +- Можна використовувати цифри від 1 до 9 саме в такому порядку і кожну цифру лише один раз. +- Будь-які послідовні цифри можна об’єднати (наприклад, використовуючи цифри 2, 3 і 4, ми отримуємо число 234). +- Можна застосовувати лише чотири звичайні бінарні арифметичні дії (додавання, віднімання, множення та ділення). +- Кожну дію можна застосовувати будь-яку кількість разів або взагалі не застосовувати. +- Унарний мінус використовувати не можна. +- Можна використовувати будь-яку кількість (також і вкладених) дужок для визначення послідовності дій. -For example, 42 is reachable, since $\frac{1}{23} \times ((4 \times 5) - 6) \times (78 - 9) = 42$. +Наприклад, 42 досяжне, оскільки $\frac{1}{23} \times ((4 \times 5) - 6) \times (78 - 9) = 42$. -What is the sum of all positive reachable integers? +Якою буде сума всіх додатних досяжних цілих чисел? # --hints-- diff --git a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-260-stone-game.md b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-260-stone-game.md index 50d5847fe49..bc90be7eebe 100644 --- a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-260-stone-game.md +++ b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-201-to-300/problem-260-stone-game.md @@ -1,6 +1,6 @@ --- id: 5900f4701000cf542c50ff83 -title: 'Problem 260: Stone Game' +title: 'Завдання 260: гра в камені' challengeType: 1 forumTopicId: 301909 dashedName: problem-260-stone-game @@ -8,15 +8,15 @@ dashedName: problem-260-stone-game # --description-- -A game is played with three piles of stones and two players. +В гру грають двоє гравців, використовуючи три купи каменів. -On each player's turn, the player removes one or more stones from the piles. However, if the player takes stones from more than one pile, the same number of stones must be removed from each of the selected piles. +На кожному ході гравець забирає один або кілька каменів з купи. Проте, якщо гравець бере камені з більше, ніж однієї купи, то з кожної вибраної купи необхідно забрати однакову кількість каменів. -In other words, the player chooses some $N > 0$ and removes: +Інакше кажучи, гравець обирає $N > 0$ каменів і забирає: -- $N$ stones from any single pile; or -- $N$ stones from each of any two piles ($2N$ total); or -- $N$ stones from each of the three piles ($3N$ total). +- $N$ камені з будь-якої купи; або +- $N$ камені з кожної з двох куп ($2N$ загалом); або +- $N$ камені з кожної з трьох куп ($3N$ загалом). The player taking the last stone(s) wins the game.