@@ -259,53 +259,9 @@ test_that("time32 types work as expected", {
259259 expect_equal(x $ children(), list ())
260260 expect_equal(x $ bit_width(), 32L )
261261 expect_equal(x $ unit(), unclass(TimeUnit $ MILLI ))
262-
263- x <- time32(TimeUnit $ MICRO )
264- expect_equal(x $ id(), 19L )
265- expect_equal(x $ name(), " time32" )
266- expect_equal(x $ ToString(), " time32[us]" )
267- expect_true(x == x )
268- expect_false(x == null())
269- expect_equal(x $ num_children(), 0L )
270- expect_equal(x $ children(), list ())
271- expect_equal(x $ bit_width(), 32L )
272- expect_equal(x $ unit(), unclass(TimeUnit $ MICRO ))
273-
274- x <- time32(TimeUnit $ NANO )
275- expect_equal(x $ id(), 19L )
276- expect_equal(x $ name(), " time32" )
277- expect_equal(x $ ToString(), " time32[ns]" )
278- expect_true(x == x )
279- expect_false(x == null())
280- expect_equal(x $ num_children(), 0L )
281- expect_equal(x $ children(), list ())
282- expect_equal(x $ bit_width(), 32L )
283- expect_equal(x $ unit(), unclass(TimeUnit $ NANO ))
284262})
285263
286264test_that(" time64 types work as expected" , {
287- x <- time64(TimeUnit $ SECOND )
288- expect_equal(x $ id(), 20L )
289- expect_equal(x $ name(), " time64" )
290- expect_equal(x $ ToString(), " time64[s]" )
291- expect_true(x == x )
292- expect_false(x == null())
293- expect_equal(x $ num_children(), 0L )
294- expect_equal(x $ children(), list ())
295- expect_equal(x $ bit_width(), 64L )
296- expect_equal(x $ unit(), unclass(TimeUnit $ SECOND ))
297-
298- x <- time64(TimeUnit $ MILLI )
299- expect_equal(x $ id(), 20L )
300- expect_equal(x $ name(), " time64" )
301- expect_equal(x $ ToString(), " time64[ms]" )
302- expect_true(x == x )
303- expect_false(x == null())
304- expect_equal(x $ num_children(), 0L )
305- expect_equal(x $ children(), list ())
306- expect_equal(x $ bit_width(), 64L )
307- expect_equal(x $ unit(), unclass(TimeUnit $ MILLI ))
308-
309265 x <- time64(TimeUnit $ MICRO )
310266 expect_equal(x $ id(), 20L )
311267 expect_equal(x $ name(), " time64" )
0 commit comments