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