Advertisement
Guest User

Director Tests

a guest
Feb 10th, 2017
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.47 KB | None | 0 0
  1. {@TestRemote1: BoolFalse: (=false PASS) (ANY ERROR)}
  2. {@AaaaA: NumTen: (=11 ERROR) (ANY PASS)}
  3. {@TestRemote3: BoolFalse: (=false PASS {BoolFalse: (=false PASS) (ANY ERROR)} PASS) (ANY ERROR)}
  4. {@1111111: BoolFalse: (=false PASS) (ANY ERROR)}
  5. {@TestRemote4: BoolFalse: (=false PASS) (ANY ERROR)}
  6. {@TestRemoteTabbed: BoolFalse:
  7. (=true ERROR)
  8. (=false PASS)
  9. }
  10. {@TestRemoteSpaced: BoolFalse:
  11. (=true ERROR)
  12. (=false PASS)
  13. }
  14. {@TestRemoteNewline: BoolFalse:
  15. (=true ERROR)
  16. (=false PASS)
  17. }
  18. * {@TestCommentedRemote: BoolFalse: (=true ERROR) (ANY PASS)} *
  19. {@TestCommentedOption: BoolFalse:
  20. * (=false ERROR) *
  21. (=false PASS)
  22. (ANY ERROR)
  23. }
  24.  
  25. Simple Tests:
  26. All tests should return text in the form of:
  27. TestSimple0 1x PASS
  28. TestSimple1 1x {BoolFalse: (=false PASS)}
  29. {BoolFalse: (=false TestSimple2 1x PASS)}
  30. {BoolFalse: (=false TestSimple3 1x)} PASS
  31. TestSimple4 {BoolFalse: (=false 1x)} PASS
  32.  
  33. Default Tests:
  34. TestDef1 1x {BoolFalse: (=false PASS) (ANY ERROR)}
  35. TestDef2 1x {BoolFalse: (=Impossible ERROR) (ANY PASS)}
  36. TestDef3 1x {BoolFalse: (=Impossible ERROR) (=Impossible2 ERROR) (ANY PASS)}
  37. TestDef4 1x {BoolFalse: (=Impossible ERROR) (ANY PASS) (=Impossible2 ERROR)}
  38. TestDef5 0x {BoolFalse: (=Impossible ERROR) (=Impossible2 ERROR)}
  39. TestDef6 1x {NonExistentEntry: (=false ERROR) (ANY PASS)}
  40.  
  41. Recursion Tests:
  42. TestRecurse1 1x {BoolFalse: (=false {BoolFalse: (=false PASS) (ANY ERROR)}) (ANY ERROR)}
  43. TestRecurse2 3x {BoolFalse: (=false PASS {BoolFalse: (=false PASS) (ANY ERROR)} PASS) (ANY ERROR {BoolFalse: (=false ERROR) (ANY ERROR)} ERROR)}
  44.  
  45. Label Definition Tests:
  46. TestLabelDefinition1 2x PASS {@NotReferenced: BoolFalse: (=false ERROR) (ANY ERROR)} PASS
  47.  
  48. Remote Director Tests:
  49. TestRemote1 1x {TestRemote1}
  50. TestRemote2 3x {AaaaA}
  51. TestRemote3 3x {TestRemote3}
  52. TestRemote4 3x {BoolFalse: (=false PASS {TestRemote4} PASS) (ANY ERROR)}
  53. TestRemote5 0x {NoReferredSection}
  54. TestRemote6 1x {TestRemoteTabbed}
  55. TestRemote7 1x {TestRemoteSpaced}
  56. TestRemote8 1x {TestRemoteNewline}
  57. TestRemote9 0x {TestCommentedRemote}
  58. TestRemote10 1x {TestCommentedOption}
  59.  
  60. Boolean Tests:
  61. TestBool1 1x {BoolFalse: (=true ERROR) (=false PASS)}
  62. TestBool2 1x {BoolFalse: (=True ERROR) (=False PASS)}
  63. TestBool3 1x {BoolFalse: (=TRUE ERROR) (=FALSE PASS)}
  64. TestBool4 1x {BoolFalse: (!=false ERROR) (!=true PASS)}
  65. TestBool5 1x {BoolFalse: (!=false ERROR) (!=true PASS)}
  66.  
  67. String Tests:
  68. TestString1 1x {TestString1: (=Horses PASS) (=Traps ERROR)}
  69. TestString2 1x {TestString2: (=Horses ERROR) (=Traps PASS)}
  70. TestString3 1x {TestString1: (!=Horses ERROR) (!=Traps PASS)}
  71. TestString4 1x {TestString1: (=Horses|Traps PASS) (ANY ERROR)}
  72. TestString5 1x {TestString1: (!=Horses|Traps ERROR) (=Horses|Traps PASS)}
  73. TestString6 1x {TestString1: (!=Bunny|Red PASS) (ANY ERROR)}
  74. TestString7 1x {TestString1: (!=Horses|Red ERROR) (=Bunny|Horses PASS)}
  75. TestString8 1x {TestString1: (!=Traps|Horses ERROR) (ANY PASS)}
  76. TestString9 1x {TestString1: (!=Red|Traps|Horses ERROR) (ANY PASS)}
  77. TestString10 1x {TestString1: (=Red|Traps|Horses PASS) (ANY ERROR)}
  78. TestString11 1x {TestString1: (=Red|Horses|Traps PASS) (ANY ERROR)}
  79. TestString12 1x {TestString1: (=Red||Horses PASS) (ANY ERROR)}
  80. TestString13 1x {TestString1: (!=Traps|Horses ERROR) (=Red|Traps|Horses PASS)}
  81.  
  82. Numeric Tests:
  83. TestNum1 1x {NumZero: (=0 PASS) (ANY ERROR)}
  84. TestNum2 1x {NumZero: (!=0 ERROR) (ANY PASS)}
  85. TestNum3 1x {NumZero: (<0 ERROR) (ANY PASS)}
  86. TestNum4 1x {NumZero: (<=0 PASS) (ANY ERROR)}
  87. TestNum5 1x {NumZero: (>0 ERROR) (ANY PASS)}
  88. TestNum6 1x {NumZero: (>=0 PASS) (ANY ERROR)}
  89. TestNum7 1x {NumNegInfinity: (>=0 ERROR) (ANY PASS)}
  90. TestNum8 1x {NumNegInfinity: (>0 ERROR) (ANY PASS)}
  91. TestNum9 1x {NumNegInfinity: (<0 PASS) (ANY ERROR)}
  92. TestNum10 1x {NumPosInfinity: (>0 PASS) (ANY ERROR)}
  93. TestNum11 1x {NumPosInfinity: (<0 ERROR) (ANY PASS)}
  94. TestNum12 1x {NumPosInfinity: (<=0 ERROR) (ANY PASS)}
  95. TestNum13 1x {NumTen: (>=0 PASS) (ANY ERROR)}
  96. TestNum14 1x {NumTen: (<=10 PASS) (ANY ERROR)}
  97. TestNum15 1x {NumTen: (<20 PASS) (ANY ERROR)}
  98. TestNum16 1x {NumZero: (0+ PASS) (ANY ERROR)}
  99. TestNum17 1x {NumZero: (1+ ERROR) (ANY PASS)}
  100.  
  101. TestNumRange1 1x {NumTen: (5..20 PASS) (ANY ERROR)}
  102. TestNumRange2 1x {NumTen: (-5..20 PASS) (ANY ERROR)}
  103. TestNumRange3 1x {NumTen: (-5..-20 ERROR) (ANY PASS)}
  104. TestNumRange4 1x {NumTen: (2..5 ERROR) (ANY PASS)}
  105. TestNumRange5 1x {NumTen: (2..5 ERROR) (2..14 PASS) (6..15 ERROR) (ANY ERROR)}
  106. TestNumRange6 1x {NumTen: (2..5 ERROR) (2..10 ERROR) (10..15 PASS) (ANY ERROR)}
  107.  
  108. TestNumFloat1 1x {NumZero: (=0.0 PASS) (ANY ERROR)}
  109. TestNumFloat2 1x {NumZero: (!=0.0 ERROR) (ANY PASS)}
  110. TestNumFloat3 1x {NumZero: (<0.0 ERROR) (ANY PASS)}
  111. TestNumFloat4 1x {NumZero: (<=0.0 PASS) (ANY ERROR)}
  112. TestNumFloat5 1x {NumZero: (>0.0 ERROR) (ANY PASS)}
  113. TestNumFloat6 1x {NumZero: (>=0.0 PASS) (ANY ERROR)}
  114. TestNumFloat7 1x {NumThreePointThree: (=3.3 PASS) (ANY ERROR)}
  115. TestNumFloat8 1x {NumThreePointThree: (=3.30 PASS) (ANY ERROR)}
  116. TestNumFloat9 1x {NumThreePointThree: (>=3.4 ERROR) (<=3.2 ERROR) (ANY PASS)}
  117. TestNumFloat10 1x {NumMinusThreePointThree: (=-3.3 PASS) (ANY ERROR)}
  118. TestNumFloat11 1x {NumMinusThreePointThree: (=-3.30 PASS) (ANY ERROR)}
  119.  
  120. TestNumFloatRange1 1x {NumThreePointThree: (1..10 PASS) (ANY ERROR)}
  121. TestNumFloatRange2 1x {NumThreePointThree: (1..3 NumFloatRangeTest2 ERROR) (ANY PASS)}
  122. TestNumFloatRange3 1x {NumThreePointThree: (1.4..3.2 NumFloatRangeTest3 ERROR) (ANY PASS)}
  123. TestNumFloatRange4 1x {NumThreePointThree: (-1.4..-3.2 NumFloatRangeTest4 ERROR) (ANY PASS)}
  124. TestNumFloatRange5 1x {NumThreePointThree: (1.4..3.2 ERROR) (1.4..3.4 PASS) (2.4..6.4 ERROR) (ANY ERROR)}
  125. TestNumFloatRange6 1x {NumThreePointThree: (1.4..3.2 ERROR) (1.4..3.3 ERROR) (3.3..6.4 PASS) (ANY ERROR)}
  126.  
  127. Cross Type Tests:
  128. TypeTest1 1x {NumZero: (=Zero ERROR) (ANY PASS)}
  129. TypeTest2 1x {TestString1: (<3 ERROR) (ANY PASS)}
  130. TypeTest3 1x {TestString1: (!=3 PASS) (ANY ERROR)}
  131. TypeTest4 1x {TestString1: (=3 ERROR) (ANY PASS)}
  132. TypeTest5 1x {BoolFalse: (=3 ERROR) (ANY PASS)}
  133. TypeTest6 1x {BoolFalse: (=0 ERROR) (ANY PASS)}
  134. TypeTest7 1x {BoolFalse: (=Nothing ERROR) (ANY PASS)}
  135.  
  136. Edge Cases:
  137. Edge1: Every line here should read as a complete sentence and end with .
  138. Edge2: A bracket (with test in it) should be printed.
  139. Edge3: A bracket {BoolFalse: (=false inside a director \(with test in it\) should)} be printed.
  140. Edge4: Spaces{BoolFalse:(=false should be set)} correctly.
  141. Edge5: Weird chars in plain text ();,..<>!=\* should be printed.
  142. Edge6: Line above should be AAAAAAAAAAAAAAAAAAAAAAAA this long.
  143. Edge7: Weird chars in director {BoolFalse: (=false \(\);,..<>!=\*\{\})} should be printed.
  144. Edge8: Line above should be AAAAAAAAAAAAAAAAAAAAAAAA this long.
  145. Edge9: These eight unicode symbols should print: 「☺♕❤ç⚣☃」 .
  146. Edge10: Capitalisation is optional {Boolfalse: (ANY for Director tags.)}
  147. Edge11: This{BoolFalse: (=false )}sentence should be correctly spaced{BoolFalse: (!=true ,)} and formatted{BoolFalse: (ANY .)}
  148.  
  149. Comment Tests:
  150. TestComment1 Nothing should be between these arrows ->* comment *<-
  151. TestComment2 There should not be a line between this line and...
  152. * Comment between lines *
  153. TestComment2 ...the next.
  154.  
  155. *
  156. Parser Breaking Tests:
  157. This section should contain no instances of the word BREAK
  158. {NumZero (\* NoColon BREAK)}
  159. {NumZero: (34 NoEquate BREAK)}
  160. {NumZero: (34> JunkGT BREAK)}
  161. {NumZero: (=<55 Invert LT BREAK)}
  162. {NumZero: (<>34 Bad NE BREAK)}
  163. {NumZero: (=>55 Invert GT BREAK)}
  164. {NumZero: (!45.5 No Equals BREAK)}
  165. {NumZero: (=.5 Bad Float BREAK)}
  166. {NumZero: (1.4.3.2 Weird Range BREAK)}
  167. {NumZero: (1.4.. Unclosed Range BREAK)}
  168. *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement