← Phòng luyện tậpOnline Testing · 20 câu
Property-based testing: generator, runner và model
20 câu về fast-check, precondition, generator có ràng buộc, shrinking, model commands và phạm vi bằng chứng concurrency.
Nội dung luyện tập
- fc property definition is lazy
- fc generator domain not input validator
- fc sample allows repeated values
- fc record default required keys
- fc check reports without throw
- fc exhausted preconditions not counterexample
- fc dependent generator chain
- fc unique array selector identity
- fc map transforms generated domain
- fc custom examples run first
- fc no shrink keeps generation
- fc async property rejection reported
- fc do not mutate generated input
- fc model check skips command
- fc reference model detects wrong debit
- fc construct constrained data before filtering
- test fc external example unmapper shrinking
- fc model negative protocol coverage
- fc scheduler wrap boundary
- fc model mismatch needs contract triage
Mỗi câu đúng 1 điểm. Mục tiêu 70%. Đáp án và giải thích mở sau khi nộp bài.