Better russian language (#37541)
This commit is contained in:
@ -13,7 +13,7 @@ localeTitle: Сравните свойства двух элементов
|
||||
|
||||
## Instructions
|
||||
<section id='instructions'>
|
||||
Use <code>assert.isAbove()</code>(i.e. greater) or <code>assert.isAtMost()</code> (i.e. less than or equal) to make the tests pass.
|
||||
Используйте <code>assert.isAbove()</code>(т.е. больше) или <code>assert.isAtMost()</code> (т.е. меньше или равно), чтобы пройти тесты.
|
||||
</section>
|
||||
|
||||
## Tests
|
||||
@ -21,15 +21,15 @@ Use <code>assert.isAbove()</code>(i.e. greater) or <code>assert.isAtMost()</code
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: All tests should pass
|
||||
- text: Все тесты должны быть пройдены
|
||||
testString: getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=7').then(data => {assert.equal(data.state,'passed'); }, xhr => { throw new Error(xhr.responseText); })
|
||||
- text: Choose the right assertion - isAbove vs. isAtMost
|
||||
- text: Выберите правильный оператор - isAbove или isAtMost
|
||||
testString: getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=7').then(data => { assert.equal(data.assertions[0].method, 'isAtMost', '5 is at most (<=) 5'); }, xhr => { throw new Error(xhr.responseText); })
|
||||
- text: Choose the right assertion - isAbove vs. isAtMost
|
||||
- text: Выберите правильный оператор - isAbove или isAtMost
|
||||
testString: getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=7').then(data => { assert.equal(data.assertions[1].method, 'isAbove', '1 is greater than 0'); }, xhr => { throw new Error(xhr.responseText); })
|
||||
- text: Choose the right assertion - isAbove vs. isAtMost
|
||||
- text: Выберите правильный оператор - isAbove или isAtMost
|
||||
testString: getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=7').then(data => { assert.equal(data.assertions[2].method, 'isAbove', 'Math.PI = 3.14159265 is greater than 3'); }, xhr => { throw new Error(xhr.responseText); })
|
||||
- text: Choose the right assertion - isAbove vs. isAtMost
|
||||
- text: Выберите правильный оператор - isAbove или isAtMost
|
||||
testString: getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=7').then(data => { assert.equal(data.assertions[3].method, 'isAtMost', '1 - Math.random() is > 0 and <= 1. It is atMost 1 !'); }, xhr => { throw new Error(xhr.responseText); })
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user