center-randomize icon indicating copy to clipboard operation
center-randomize copied to clipboard

[TODO] Test cases

Open krishna-parajuli opened this issue 10 months ago • 3 comments

I saw a PR without tests written. Let’s add contribution guidelines and define a flow of how a PR gets merged into the repo.

krishna-parajuli avatar Apr 19 '24 19:04 krishna-parajuli

Agreed. converted this to a TODO.

Please help by writing test cases to ensure that Allocation guidelines are met.

  • एक विद्यालयको परिक्षार्थी संख्या हेरी सकभर १००, २०० भन्दा बढी परीक्षार्थी एकै केन्द्रमा नपर्ने गरी बाँढ्न पर्ने
  • आफ्नै विद्यालयमा केन्द्र पार्न नहुने
  • दुई विद्यालयका परीक्षार्थीको केन्द्र एक अर्कामा पर्न नहुने, अर्थात् कुनै विद्यालयका परीक्षार्थीको केन्द्र परेको विद्यालयका परीक्षार्थीहरूको केन्द्र अघिल्लो विद्यालयमा पार्न नहुने ।
  • एकै स्वामित्व / व्यवस्थापनको भनी पहिचान भएका केन्द्रमा पार्न नहुने
  • विगतमा कुनै विद्यालयको कुनै केन्द्रमा पार्दा समस्या देखिएकोमा केन्द्र नदोहोऱ्याउन नहुने
  • प्रत्येक पटक केन्द्र तोक्ने प्रोग्राम चलाउदा फरक फरक नतिजा आउने गरी ऱ्यान्डमाइज भएको हुनु पर्ने

Please remember the output is randomized and inherently nondeterministic, test cases must be written with this in mind

sumanashrestha avatar Apr 20 '24 05:04 sumanashrestha

I have already started. will send a PR once done on my end.

krishna-parajuli avatar Apr 20 '24 05:04 krishna-parajuli

@sumanashrestha @krishna-parajuli Could you please kindly review my PR I have added the test cases in my commits .

https://github.com/moest-np/center-randomize/pull/89

samurato avatar May 01 '24 15:05 samurato