Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the parser threshold value #26

Merged
merged 2 commits into from
Nov 30, 2021
Merged

Export the parser threshold value #26

merged 2 commits into from
Nov 30, 2021

Conversation

tushuhei
Copy link
Member

No description provided.

@tushuhei tushuhei merged commit 34d7371 into main Nov 30, 2021
@Lovygoogle
Copy link

تأكيد const = تتطلب ('تأكيد') ؛ وصف ('Simple Math Test'، () => { it ('should return 2'، () => { assert.equal (1 + 1، 2)؛ })؛ it ('should return 9'، () => { assert.equal (3 * 3، 9)؛ })؛ })

@Lovygoogle
Copy link

توقع const = تتطلب ('chai'). توقع ؛
// import math file
const math = يتطلب ('../ math') ؛
وصف ('اختبارات math.js'، () => {
وصف ('math.add () Test'، () => {
it ('يجب أن يساوي 2'، () => {
نتيجة ثابتة = math.add ( 1 ، 1) ؛
توقع (نتيجة) .to.equal (2) ؛
}) ؛
إنها ('يجب أن تساوي 4' ، () => {
نتيجة ثابتة = math.add (2 ، 2) ؛
توقع (نتيجة). to.equal (4)؛
})؛
})؛

وصف ('math.multiply () Test'، () => { 
    it ('يجب أن يساوي 3'، () => { 
        const نتيجة = math.multiply (3 ، 1) ؛ 
        توقع (نتيجة) .to.equal (3) ؛ 
    }) ؛ 
    إنها ('يجب أن تساوي 10' ، () => { 
        نتيجة ثابتة = رياضيات.اضرب (5 ، 2) ؛
        توقع (نتيجة) .to.equal (10) ؛ 
    }) ؛ 
}) ؛ 

})
الرياضيات الثابتة = {} ؛
math.add = (num1، num2) => num1 + num2 ؛
مضاعفة الرياضيات = (num1، num2) => num1 * num2 ؛
module.exports = math؛
يجب أن يكون const = تتطلب ('chai'). should () ؛
...
isTrue.should.equal (true) ؛
تأكيد const = تتطلب ('تأكيد') ؛
وصف ('Simple Math Test'، () => {
it ('should return 2'، () => {
assert.equal (1 + 1، 2)؛
})؛
it ('should return 9'، () => {
assert.equal (3 * 2، 9)؛
})؛
}) ؛
توقع const = تتطلب ('chai') ؛
...
توقع (1 + 1) .to.equal (2) ؛
توقع (صحيح) .to.be.true
يجب أن يكون const = تتطلب ('chai'). should () ؛
...
isTrue.should.equal (true) ؛"البرامج النصية":
{
"الاختبار": "المخاوي"
}

@tushuhei tushuhei deleted the tushuhei-patch-1 branch April 1, 2022 03:35
@tushuhei tushuhei restored the tushuhei-patch-1 branch April 1, 2022 03:35
@tushuhei tushuhei deleted the tushuhei-patch-1 branch April 1, 2022 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants