Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.42 KB | None | 0 0
  1. t/api/date.t ..
  2. 1..172
  3. Granting access to urt4test@'localhost' on rt4test.
  4. ok 1 - use RT::Date;
  5. ok 2 - constructor returned RT::Date oject isa RT::Date
  6. ok 3 - constructor returned RT::Date oject isa RT::Date
  7. ok 4 - user was created
  8. ok 5 - dropped all timzones to UTC
  9. ok 6 - dropped all timzones to UTC
  10. ok 7 - with wrong context returns UTC
  11. ok 8 - successfuly changed user's timezone
  12. ok 9 - in user context returns user's timezone
  13. ok 10 - wasn't changed
  14. ok 11 - timezone of the RT server was changed
  15. ok 12 - in user context still returns user's timezone
  16. ok 13
  17. ok 14 - in user context returns timezone of the server if user's one is not defined
  18. ok 15 - timezone is GMT which one is alias for UTC
  19. ok 16 - user's and server's timzones are not defined, so UTC
  20. ok 17 - timezone of the server is not defined so UTC
  21. ok 18 - new date returns 0 in Unix format
  22. ok 19 - default is ISO format
  23. ok 20 - don't know format, return ISO format
  24. ok 21 - W3CDTF format with defaults
  25. ok 22 - RFC2822 format with defaults
  26. not ok 23 - LocalizedDateTime format with defaults
  27. ok 24 - ISO format without time part
  28. ok 25 - W3CDTF format without time part
  29. ok 26 - RFC2822 format without time part
  30. not ok 27 - LocalizedDateTime format without time part
  31. ok 28 - ISO format without date part
  32. ok 29 - W3CDTF format is incorrect without date part
  33. ok 30 - RFC2822 format without date part
  34. not ok 31 - LocalizedDateTime format without date part
  35. ok 32 - ISO format without date part and seconds
  36. ok 33 - W3CDTF format without seconds, but we ship date part even if Date is false
  37. ok 34 - RFC2822 format without date part and seconds
  38. ok 35 - RFC2822 format without 'day of week' part
  39. ok 36 - RFC2822 format without 'day of week' and date parts(corner case test)
  40. not ok 37 - LocalizedDateTime format without abbreviation of day
  41. not ok 38 - LocalizedDateTime format without abbreviation of month
  42. not ok 39 - LocalizedDateTime format with non default DateFormat
  43.  
  44. # Failed test 'LocalizedDateTime format with defaults'
  45. # at t/api/date.t line 97.
  46. # got: 'Чт, 1 янв. 1970 г. 0:00:00'
  47. # expected: 'Thu, Jan 1, 1970 12:00:00 AM'
  48.  
  49. # Failed test 'LocalizedDateTime format without time part'
  50. # at t/api/date.t line 110.
  51. # got: 'Чт, 1 янв. 1970 г.'
  52. # expected: 'Thu, Jan 1, 1970'
  53.  
  54. # Failed test 'LocalizedDateTime format without date part'
  55. # at t/api/date.t line 123.
  56. # got: '0:00:00'
  57. # expected: '12:00:00 AM'
  58.  
  59. # Failed test 'LocalizedDateTime format without abbreviation of day'
  60. # at t/api/date.t line 144.
  61. # got: 'четверг, 1 янв. 1970 г. 0:00:00'
  62. # expected: 'Thursday, Jan 1, 1970 12:00:00 AM'
  63.  
  64. # Failed test 'LocalizedDateTime format without abbreviation of month'
  65. # at t/api/date.t line 147.
  66. # got: 'Чт, 1 января 1970 г. 0:00:00'
  67. # expected: 'Thu, January 1, 1970 12:00:00 AM'
  68.  
  69. # Failed test 'LocalizedDateTime format with non default DateFormat'
  70. # at t/api/date.t line 150.
  71. # got: '01.01.70 0:00:00'
  72. # expected: '1/1/70 12:00:00 AM'
  73. not ok 40 - LocalizedDateTime format with non default TimeFormat
  74. ok 41 - the default format for the 'Date' method is ISO
  75. ok 42 - 'Date' method, W3CDTF format
  76. ok 43 - 'Date' method, RFC2822 format
  77. ok 44 - 'Date' method doesn't pass through 'Time' argument
  78. ok 45 - 'Date' method overrides 'Date' argument
  79. ok 46 - the default format for the 'Time' method is ISO
  80. ok 47 - 'Time' method, W3CDTF format, date part is required by w3c doc
  81. ok 48 - 'Time' method, RFC2822 format
  82. ok 49 - 'Time' method doesn't pass through 'Date' argument
  83. ok 50 - 'Time' method overrides 'Time' argument
  84. ok 51 - the default format for the 'DateTime' method is ISO
  85. ok 52 - 'DateTime' method, W3CDTF format
  86. ok 53 - 'DateTime' method, RFC2822 format
  87. ok 54 - the 'DateTime' method overrides both 'Date' and 'Time' arguments
  88.  
  89. # Failed test 'LocalizedDateTime format with non default TimeFormat'
  90. # at t/api/date.t line 153.
  91. # got: 'Чт, 1 янв. 1970 г. 0:00'
  92. # expected: 'Thu, Jan 1, 1970 12:00 AM'
  93. ok 55 - ISO
  94. ok 56 - W3C DTF
  95. ok 57 - RFC2822
  96. ok 58 - ISO
  97. ok 59 - W3C DTF
  98. ok 60 - RFC2822
  99. ok 61 - ISO
  100. ok 62 - W3C DTF
  101. ok 63 - RFC2822
  102. ok 64 - ISO
  103. ok 65 - W3C DTF
  104. ok 66 - RFC2822
  105. ok 67 - bad format
  106. ok 68
  107. ok 69 - correct value
  108. ok 70 - correct value
  109. ok 71 - Set a date to midnight 1/1/1970 GMT due to wrong call
  110. ok 72 - unix is 0 => unset
  111. ok 73 - correct value
  112. ok 74 - Set a date to midnight 1/1/1970 GMT due to wrong call
  113. ok 75 - unix is 0 => unset
  114. ok 76 - correct value
  115. ok 77 - Set a date to midnight 1/1/1970 GMT due to wrong call
  116. ok 78 - unix is 0 => unset
  117. ok 79
  118. ok 80 - date was wrong => unix == 0
  119. ok 81 - YYYY-DD-MM hh:mm:ss
  120. ok 82 - YYYY-DD-MM hh:mm:ss+00
  121. ok 83 - DD-MM hh:mm:ss
  122. ok 84 - DD-MM hh:mm:ss+00
  123. ok 85 - YYYYDDMMhhmmss
  124. ok 86 - DDMMhhmmss
  125. ok 87 - YYYYDDMMhh:mm:ss
  126. ok 88 - DDMMhh:mm:ss
  127. ok 89 - wrong month value
  128. ok 90 - wrong month value
  129. ok 91 - too old, we don't support
  130. ok 92 - date was wrong
  131. ok 93 - YYYY-DD-MM hh:mm:ss
  132. ok 94 - YYYY-DD-MM hh:mm:ss
  133. ok 95 - YYYY-DD-MM hh:mm:ss
  134. ok 96 - date was wrong
  135. ok 97 - YYYY-DD-MM hh:mm:ss
  136. ok 98 - YYYY-DD-MM hh:mm:ss
  137. ok 99 - YYYY-DD-MM hh:mm:ss
  138. ok 100 - YYYY-DD-MM hh:mm:ss
  139. ok 101 - YYYY-DD-MM hh:mm:ss
  140. ok 102 - YYYY-DD-MM hh:mm:ss
  141. ok 103 - YYYY-DD-MM hh:mm:ss
  142. ok 104 - YYYY-DD-MM hh:mm:ss
  143. ok 105 - default is utc
  144. ok 106 - utc context
  145. ok 107 - user context, user has no preference, fallback to server
  146. ok 108 - server context
  147. ok 109 - default is utc
  148. ok 110 - utc context
  149. ok 111 - user context
  150. ok 112 - server context
  151. ok 113 - close enough
  152. ok 114 - difference is less than five seconds
  153. ok 115 - nothing changed
  154. ok 116 - nothing changed
  155. ok 117 - added five seconds
  156. ok 118 - substracted two seconds
  157. ok 119 - added one hour, minute and a second
  158. ok 120 - added one day
  159. ok 121 - added two days
  160. ok 122 - substructed one day
  161. ok 123 - added one month
  162. ok 124 - AsString returns 'Not set'
  163. ok 125 - correct string
  164. ok 126 - correct string
  165. ok 127 - correct string
  166. ok 128 - invalid input
  167. ok 129 - correct string
  168. ok 130 - correct string
  169. ok 131 - correct string
  170. ok 132 - 1 sec
  171. ok 133 - 59 sec
  172. ok 134 - 1 min
  173. ok 135 - 119 min
  174. ok 136 - 120 min
  175. ok 137 - 2 hours
  176. ok 138 - 48 hours
  177. ok 139 - 2 days
  178. ok 140 - 14 days
  179. ok 141 - 2 weeks
  180. ok 142 - 8 weeks
  181. ok 143 - 2 months
  182. ok 144 - 12 months
  183. ok 145 - 1 years
  184. ok 146 - 1 sec ago
  185. ok 147 - no diff, wrong input
  186. ok 148 - no diff, wrong input
  187. ok 149 - no diff, wrong input
  188. ok 150 - no diff, wrong input
  189. ok 151 - diff: 1 sec ago
  190. ok 152 - diff: 1 sec
  191. ok 153 - no diff, wrong input
  192. ok 154 - diff: 1 sec ago
  193. ok 155 - close enought
  194. ok 156 - close enought
  195. ok 157 - close enought
  196. ok 158 - 7 and greater are invalid
  197. ok 159 - 6 is Saturday
  198. ok 160 - 0 is Sunday
  199. ok 161 - -1 is Saturday
  200. ok 162 - -7 is Sunday
  201. ok 163 - -8 and lesser are invalid
  202. ok 164 - 12 and greater are invalid
  203. ok 165 - 11 is December
  204. ok 166 - 0 is January
  205. ok 167 - 11 is December
  206. ok 168 - 0 is January
  207. ok 169 - -13 and lesser are invalid
  208. ok 170 - unix is 0 with Value => 0, Format => 'unknown'
  209. ok 171 - unix is 0 with Value => '', Format => 'unknown'
  210. ok 172 - unix is 0 with Value => ' ', Format => 'unknown'
  211. # Some tests failed or we bailed out, tmp directory '/Users/ruz/projs/RT/core/t/tmp/xGL5urYsD0' is not cleaned
  212. # Looks like you failed 7 tests of 172.
  213. Dubious, test returned 7 (wstat 1792, 0x700)
  214. Failed 7/172 subtests
  215.  
  216. Test Summary Report
  217. -------------------
  218. t/api/date.t (Wstat: 1792 Tests: 172 Failed: 7)
  219. Failed tests: 23, 27, 31, 37-40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement