क्या होता है जब CapsLockआपके कीबोर्ड की कुंजी उसमें एक पायदान नहीं होती है?
"यह hPPENS।"
इस कार्यक्रम का लक्ष्य लगातार कीबोर्ड मिस का अनुकरण करना है जहां प्रत्येक Aप्रेस को बदल दिया जाता है CapsLock। स्रोत से 'अपरकेस' को समान प्रभाव प्राप्त करना चाहिए। जब CapsLockसक्षम किया जाता है, तो पूंजीकरण उलट जाता है।
परीक्षण के मामलों
"The quick brown fox jumps over the lazy dog."
-> "The quick brown fox jumps over the lZY DOG."
"Compilation finished successfully."
-> "CompilTION FINISHED SUCCESSFULLY."
"What happens when the CapsLock key on your keyboard doesn't have a notch in it?"
-> "WhT Hppens when the CPSlOCK KEY ON YOUR KEYBOrd doesn't hVE notch in it?"
"The end of the institution, maintenance, and administration of government, is to secure the existence of the body politic, to protect it, and to furnish the individuals who compose it with the power of enjoying in safety and tranquillity their natural rights, and the blessings of life: and whenever these great objects are not obtained, the people have a right to alter the government, and to take measures necessary for their safety, prosperity and happiness."
-> "The end of the institution, mINTENnce, ND dministrTION OF GOVERNMENT, IS TO SECURE THE EXISTENCE OF THE BODY POLITIC, TO PROTECT IT, nd to furnish the individuLS WHO COMPOSE IT WITH THE POWER OF ENJOYING IN Sfety ND TRnquillity their nTURl rights, ND THE BLESSINGS OF LIFE: nd whenever these greT OBJECTS re not obtINED, THE PEOPLE Hve RIGHT TO lter the government, ND TO Tke meSURES NECESSry for their sFETY, PROSPERITY nd hPPINESS."
"aAaaaaAaaaAAaAa"
-> "" (Without the notch, no one can hear you scream)
"CapsLock locks cAPSlOCK"
-> "CPSlOCK LOCKS CPSlOCK"
"wHAT IF cAPSlOCK IS ALREADY ON?"
-> "wHt if CPSlOCK IS lreDY ON?"
जीतने की कसौटी, हमेशा की तरह, प्रस्तुत कार्यक्रम के स्रोत कोड का आकार है।
teSTateSTateSTateST