mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-06 06:01:31 -05:00
chore(i18n,learn): processed translations (#52286)
This commit is contained in:
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ To learn more about truthy and falsy values, try our <a href="https://www.freeco
|
||||
|
||||
# --instructions--
|
||||
|
||||
Within `tests/1_unit-tests.js` under the test labelled `#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`). Do not alter the arguments passed to the asserts.
|
||||
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`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` 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 `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` 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 `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` 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 `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square
|
||||
|
||||
<img class="img-responsive center-block" alt="diagram with squares under the hyperbola" src="https://cdn.freecodecamp.org/curriculum/project-euler/squares-under-a-hyperbola.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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。
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square
|
||||
|
||||
<img class="img-responsive center-block" alt="diagram with squares under the hyperbola" src="https://cdn.freecodecamp.org/curriculum/project-euler/squares-under-a-hyperbola.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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。
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square
|
||||
|
||||
<img class="img-responsive center-block" alt="diagram with squares under the hyperbola" src="https://cdn.freecodecamp.org/curriculum/project-euler/squares-under-a-hyperbola.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Para este proyecto, puedes usar el siguiente código inicial en <a href="https:/
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#7` en `Equality` suite, cambia cada `assert` a `assert.deepEqual` o `assert.notDeepEqual` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Como recordatorio, este proyecto está siendo construido con base en el siguient
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#8` en `Comparisons` suite, cambiar cada `assert` a `assert.isAbove` o `assert.isAtMost` para que el test sea aprovado (debe evaluarse a `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ Una vez completado lo anterior, asegúrate de que una demo funcional del proyect
|
||||
|
||||
# --instructions--
|
||||
|
||||
En `tests/1_unit-tests.js`, bajo el test etiquetado como `#1` en la suite `Basic Assertions`, cambia cada `assert` a `assert.isNull` o `assert.isNotNull` para que los tests se pasen (deben ser evaluados a `true`). No cambies los argumentos pasados a las aserciones.
|
||||
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`). No cambies los argumentos pasados a las aserciones.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ assert.isTrue(1, 'This will NOT pass with the number value 1');
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#4` en la `Basic Assertions`, cambia cada `assert` a `assert.isTrue` o `assert.isNotTrue` para hacer que la prueba pase (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#14` en el conjunto de `Strings`, cambia cada `assert` a `assert.include` o `assert.notInclude` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Comprueba que `actual` es igual a `expected`, dentro de un rango +/- `delta`.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#10` en `Comparisons` suite, cambiar cada `assert` a `assert.approximately` para que el test sea superado (debe evaluarse a `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`).
|
||||
|
||||
Elija el rango mínimo (3er parámetro), para hacer que la prueba sea superada. Esto debe ser inferior a 1.
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#13` en `Strings` suite, cambia cada `assert` a `assert.isString` o `assert.isNotString` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Como recordatorio, este proyecto está siendo construido con base en el siguient
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#11` en el `Arrays` suite, cambia cada `assert` a `assert.isArray` o `assert.isNotArray` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#17` en `Objects` suite, cambia cada `assert` a `assert.typeOf` o `assert.notTypeOf` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#2` en `Basic Assertions` suite, cambie cada `assert` a `assert.isDefined()` o `assert.isUndefined()` para hacer que la prueba pase (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#12` en `Arrays` suite, cambia cada `assert` a `assert.include` o `assert.notInclude` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#16` en `Objects` suite, cambia cada `assert` a `assert.property` o `assert.notProperty` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#18` en `Objects` suite, cambia cada `assert` a `assert.instanceOf` o `assert.notInstanceOf` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ Para aprender más sobre los valores verdaderos y falsos, prueba nuestro desafí
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#3` en `Basic Assertions` suite, cambie cada `assert` a `assert.isOk()` o `assert.isNotOk()` para hacer que la prueba pase (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#15` en `Strings`, suite cambia cada `assert` a `assert.match` o `assert.notMatch` para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#5` en `Equality` suite, cambia cada `assert` a `assert.equal` o `assert.notEqual`, para pasar la prueba (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Recuerda, este proyecto se está construyendo partir de una plantilla en <a href
|
||||
|
||||
# --instructions--
|
||||
|
||||
Dentro de `tests/1_unit-tests.js` bajo la prueba etiquetada `#6` en `Equality` suite, cambia cada `assert` a `assert.strictEqual` o `assert.notStrictEqual`, para que la prueba sea pasada (debe evaluarse como `true`). No modifiques los argumentos pasados a los verificadores.
|
||||
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`). No modifiques los argumentos pasados a los verificadores.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square
|
||||
|
||||
<img class="img-responsive center-block" alt="diagram with squares under the hyperbola" src="https://cdn.freecodecamp.org/curriculum/project-euler/squares-under-a-hyperbola.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Zur Erinnerung: Dieses Projekt baut auf dem folgenden Startprojekt bei <a href="
|
||||
|
||||
# --instructions--
|
||||
|
||||
Passe innerhalb `tests/1_unit-tests.js` beim Test mit der Beschriftung `#8` in der `Comparisons`-Suite jedes `assert` entweder zu `assert.isAbove` an oder zu `assert.isAtMost`, damit der Test durchläuft (er sollte mit `true` ausgewertet werden). Verändere die an die Asserts übergebenen Argumente nicht.
|
||||
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`). Verändere die an die Asserts übergebenen Argumente nicht.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ Wenn du fertig bist, stelle sicher, dass eine funktionierende Demo deines Projek
|
||||
|
||||
# --instructions--
|
||||
|
||||
Ändere innerhalb `tests/1_unit-tests.js` unter dem Test mit dem Label `#1` in der `Basic Assertions`-Suite jeden `assert` zu entweder `assert.isNull` oder `assert.isNotNull`, 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 `#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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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`).
|
||||
|
||||
Wählen den Minimalbereich (3. Parameter) aus, damit der Test immer bestanden wird. Es sollte weniger als 1 sein.
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ As a reminder, this project is being built upon the following starter project on
|
||||
|
||||
# --instructions--
|
||||
|
||||
Ändere innerhalb `tests/1_unit-tests.js` mit dem gekennzeichneten Test `#11` in der `Arrays`-Suite, jeden `assert` zu `assert.isArray` oder `assert.isNotArray`, um den Test zu bestehen (sollte `true` ausgeben). 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--
|
||||
|
||||
|
||||
@@ -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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Zur Erinnerung: Dieses Projekt baut auf dem folgenden Startprojekt auf<a href="h
|
||||
|
||||
# --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`). Ändere nicht die Argumente, die an die Assertions übergeben werden.
|
||||
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`). Ändere nicht die Argumente, die an die Assertions übergeben werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ To learn more about truthy and falsy values, try our <a href="https://www.freeco
|
||||
|
||||
# --instructions--
|
||||
|
||||
Within `tests/1_unit-tests.js` under the test labelled `#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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#15` in the `Strings` suite, change each `assert` to either `assert.match` or `assert.notMatch` to make the test pass (should evaluate to `true`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
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`). Die an die Asserts übergebenen Argumente dürfen nicht verändert werden.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` 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 `#5` in the `Equality` suite, change each `assert` to either `assert.equal` or `assert.notEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -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 `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` 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 `#6` in the `Equality` suite, change each `assert` to either `assert.strictEqual` or `assert.notStrictEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Let the index of $S_n$ be the pair (left, below) indicating the number of square
|
||||
|
||||
<img class="img-responsive center-block" alt="diagram with squares under the hyperbola" src="https://cdn.freecodecamp.org/curriculum/project-euler/squares-under-a-hyperbola.gif" style="background-color: white; padding: 10px;" />
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user