Better russian language (#37541)

This commit is contained in:
Gregory
2020-01-24 09:46:48 +04:00
committed by Gregory Gubarev
parent dd9485f27c
commit decc6043c2

View File

@ -13,7 +13,7 @@ localeTitle: Сравните свойства двух элементов
## Instructions ## Instructions
<section id='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> </section>
## Tests ## Tests
@ -21,15 +21,15 @@ Use <code>assert.isAbove()</code>(i.e. greater) or <code>assert.isAtMost()</code
```yml ```yml
tests: 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); }) 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); }) 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); }) 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); }) 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); }) 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); })
``` ```