unitTest.cpp 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Describe(Char_to_ASCII)
  2. {
  3. It(test1){Assert::That(ctoa(' '), Equals(32));}
  4. It(test2){Assert::That(ctoa('A'), Equals(65));}
  5. It(test3){Assert::That(ctoa('B'), Equals(66));}
  6. It(test4){Assert::That(ctoa('C'), Equals(67));}
  7. It(test5){Assert::That(ctoa('D'), Equals(68));}
  8. It(test6){Assert::That(ctoa('E'), Equals(69));}
  9. It(test7){Assert::That(ctoa('F'), Equals(70));}
  10. It(test8){Assert::That(ctoa('G'), Equals(71));}
  11. It(test9){Assert::That(ctoa('H'), Equals(72));}
  12. It(test10){Assert::That(ctoa('I'), Equals(73));}
  13. It(test11){Assert::That(ctoa('J'), Equals(74));}
  14. It(test12){Assert::That(ctoa('K'), Equals(75));}
  15. It(test13){Assert::That(ctoa('L'), Equals(76));}
  16. It(test14){Assert::That(ctoa('M'), Equals(77));}
  17. It(test15){Assert::That(ctoa('N'), Equals(78));}
  18. It(test16){Assert::That(ctoa('O'), Equals(79));}
  19. It(test17){Assert::That(ctoa('P'), Equals(80));}
  20. It(test18){Assert::That(ctoa('Q'), Equals(81));}
  21. It(test19){Assert::That(ctoa('R'), Equals(82));}
  22. It(test20){Assert::That(ctoa('S'), Equals(83));}
  23. It(test21){Assert::That(ctoa('T'), Equals(84));}
  24. It(test22){Assert::That(ctoa('U'), Equals(85));}
  25. It(test23){Assert::That(ctoa('V'), Equals(86));}
  26. It(test24){Assert::That(ctoa('W'), Equals(87));}
  27. It(test25){Assert::That(ctoa('X'), Equals(88));}
  28. It(test26){Assert::That(ctoa('Y'), Equals(89));}
  29. It(test27){Assert::That(ctoa('Z'), Equals(90));}
  30. It(test28){Assert::That(ctoa('['), Equals(91));}
  31. It(test29){Assert::That(ctoa('\\'), Equals(92));}
  32. It(test30){Assert::That(ctoa(']'), Equals(93));}
  33. It(test31){Assert::That(ctoa('^'), Equals(94));}
  34. It(test32){Assert::That(ctoa('_'), Equals(95));}
  35. It(test33){Assert::That(ctoa('`'), Equals(96));}
  36. It(test34){Assert::That(ctoa('a'), Equals(97));}
  37. It(test35){Assert::That(ctoa('b'), Equals(98));}
  38. It(test36){Assert::That(ctoa('c'), Equals(99));}
  39. It(test37){Assert::That(ctoa('d'), Equals(100));}
  40. It(test38){Assert::That(ctoa('e'), Equals(101));}
  41. It(test39){Assert::That(ctoa('f'), Equals(102));}
  42. It(test40){Assert::That(ctoa('g'), Equals(103));}
  43. It(test41){Assert::That(ctoa('h'), Equals(104));}
  44. It(test42){Assert::That(ctoa('i'), Equals(105));}
  45. It(test43){Assert::That(ctoa('j'), Equals(106));}
  46. It(test44){Assert::That(ctoa('k'), Equals(107));}
  47. It(test45){Assert::That(ctoa('l'), Equals(108));}
  48. It(test46){Assert::That(ctoa('m'), Equals(109));}
  49. It(test47){Assert::That(ctoa('n'), Equals(110));}
  50. It(test48){Assert::That(ctoa('o'), Equals(111));}
  51. It(test49){Assert::That(ctoa('p'), Equals(112));}
  52. It(test50){Assert::That(ctoa('q'), Equals(113));}
  53. It(test51){Assert::That(ctoa('r'), Equals(114));}
  54. It(test52){Assert::That(ctoa('s'), Equals(115));}
  55. It(test53){Assert::That(ctoa('t'), Equals(116));}
  56. It(test54){Assert::That(ctoa('u'), Equals(117));}
  57. It(test55){Assert::That(ctoa('v'), Equals(118));}
  58. It(test56){Assert::That(ctoa('w'), Equals(119));}
  59. It(test57){Assert::That(ctoa('x'), Equals(120));}
  60. It(test58){Assert::That(ctoa('y'), Equals(121));}
  61. It(test59){Assert::That(ctoa('z'), Equals(122));}
  62. };