File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
22# fugit credits
33
4+ * https://github.com/personnumber3377 , gh-104 Fugit.parse choke on long input
45* Michael Scrivo, https://github.com/mscrivo , gh-103
56* Benjamin Darcet, https://github.com/bdarcet gh-95 gh-96 et-orbi #rweek
67* https://github.com/franckduche gh-95 gh-96 et-orbi #rweek
Original file line number Diff line number Diff line change 117117 o , d = do_time {
118118 Fugit . parse ( '0 0' + ' 0' * 10_000 + ' 1 jan * UTC' ) }
119119
120- expect ( o ) . to be ( nil )
121- expect ( d ) . to be < 0.042
120+ expect ( d ) . to be < 0.1
121+ expect ( o ) . to be nil
122122 end
123123 end
124124
154154 err
155155 end }
156156
157+ expect ( d ) . to be < 0.1
158+
157159 expect ( r . class ) . to be (
158160 ArgumentError )
159161 expect ( r . message ) . to eq (
160162 'invalid cron string "0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... len 20015"' )
161-
162- expect ( d ) . to be < 0.042
163163 end
164164 end
165165
You can’t perform that action at this time.
0 commit comments