unitTest.cpp 1.9 KB

12345678910111213
  1. Describe(reverse_order)
  2. {
  3. It(test1){Assert::That(reverse("Think different."), Equals(".tnereffid knihT"));}
  4. It(test2){Assert::That(reverse("It doesnt make sense to hire smart people and tell them what to do; we hire smart people so they can tell us what to do."), Equals(".od ot tahw su llet nac yeht os elpoep trams erih ew ;od ot tahw meht llet dna elpoep trams erih ot esnes ekam tnseod tI"));}
  5. It(test3){Assert::That(reverse("Innovation is the ability to see change as an opportunity - not a threat"), Equals("taerht a ton - ytinutroppo na sa egnahc ees ot ytiliba eht si noitavonnI"));}
  6. It(test4){Assert::That(reverse("Everything is based on a simple rule: Quality is the best business plan."), Equals(".nalp ssenisub tseb eht si ytilauQ :elur elpmis a no desab si gnihtyrevE"));}
  7. It(test5){Assert::That(reverse("The people who are crazy enough to think they can change the world are the ones who do."), Equals(".od ohw seno eht era dlrow eht egnahc nac yeht kniht ot hguone yzarc era ohw elpoep ehT"));}
  8. It(test6){Assert::That(reverse("Dont let the noise of others opinions drown out your own inner voice."), Equals(".eciov renni nwo ruoy tuo nword snoinipo srehto fo esion eht tel tnoD"));}
  9. It(test7){Assert::That(reverse("Learn continually; Theres always one more thing to learn."), Equals(".nrael ot gniht erom eno syawla serehT ;yllaunitnoc nraeL"));}
  10. It(test8){Assert::That(reverse("Quality is more important than quantity. One home run is much better than two doubles."), Equals(".selbuod owt naht retteb hcum si nur emoh enO .ytitnauq naht tnatropmi erom si ytilauQ"));}
  11. It(test9){Assert::That(reverse("Your time is limited so dont waste it living someone elses life."), Equals(".efil sesle enoemos gnivil ti etsaw tnod os detimil si emit ruoY"));}
  12. It(test10){Assert::That(reverse("The only way to be truly satisfied is to do what you believe is great work."), Equals(".krow taerg si eveileb uoy tahw od ot si deifsitas ylurt eb ot yaw ylno ehT"));}
  13. };