ما هي property-based-testing؟
يُستخدم عند كتابة اختبارات للتسلسل أو التحقق من الصحة أو التسوية أو الوظائف النقية - يوفر كتالوج الخصائص واكتشاف الأنماط ومرجع المكتبة للاختبار القائم على الخاصية المصدر: ed3dai/ed3d-plugins.
يُستخدم عند كتابة اختبارات للتسلسل أو التحقق من الصحة أو التسوية أو الوظائف النقية - يوفر كتالوج الخصائص واكتشاف الأنماط ومرجع المكتبة للاختبار القائم على الخاصية
ثبّت مهارة الذكاء الاصطناعي property-based-testing بسرعة في بيئة التطوير لديك عبر سطر الأوامر
المصدر: ed3dai/ed3d-plugins.
Property-based testing (PBT) generates random inputs and verifies that properties hold for all of them. Instead of testing specific examples, you test invariants.
| Roundtrip | decode(encode(x)) == x | Serialization, conversion pairs | | Idempotence | f(f(x)) == f(x) | Normalization, formatting, sorting | | Invariant | Property holds before/after | Any transformation | | Commutativity | f(a, b) == f(b, a) | Binary/set operations | | Associativity | f(f(a,b), c) == f(a, f(b,c)) | Combining operations |
| Identity | f(x, identity) == x | Operations with neutral element | | Inverse | f(g(x)) == x | encrypt/decrypt, compress/decompress | | Oracle | newimpl(x) == reference(x) | Optimization, refactoring | | Easy to Verify | issorted(sort(x)) | Complex algorithms | | No Exception | No crash on valid input | Baseline (weakest) |
حقول وأوامر مستقرة للاقتباس في أنظمة الذكاء الاصطناعي والبحث.
npx skills add https://github.com/ed3dai/ed3d-plugins --skill property-based-testingيُستخدم عند كتابة اختبارات للتسلسل أو التحقق من الصحة أو التسوية أو الوظائف النقية - يوفر كتالوج الخصائص واكتشاف الأنماط ومرجع المكتبة للاختبار القائم على الخاصية المصدر: ed3dai/ed3d-plugins.
افتح الطرفية أو أداة سطر الأوامر لديك مثل Terminal أو iTerm أو Windows Terminal انسخ ونفّذ هذا الأمر: npx skills add https://github.com/ed3dai/ed3d-plugins --skill property-based-testing بعد التثبيت، سيتم إعداد المهارة تلقائيا في بيئة البرمجة بالذكاء الاصطناعي لديك وتصبح جاهزة للاستخدام في Claude Code أو Cursor أو OpenClaw
https://github.com/ed3dai/ed3d-plugins