File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ 2025-10-21 Dirk Eddelbuettel <edd@debian.org>
2+
3+ * inst/tinytest/test_misc.R: Tests for armadillo_version_typed()
4+
152025-10-20 Dirk Eddelbuettel <edd@debian.org>
26
37 * DESCRIPTION (Version, Date): RcppArmadillo 15.2.0-0
Original file line number Diff line number Diff line change 11# !/usr/bin/r -t
22#
3- # Copyright (C) 2021-2023 Dirk Eddelbuettel
3+ # Copyright (C) 2021-2025 Dirk Eddelbuettel
44#
55# This file is part of RcppArmadillo.
66#
@@ -23,9 +23,14 @@ library(RcppArmadillo)
2323arma <- armadillo_version(FALSE )
2424expect_equal(length(arma ), 3 ) # major minor patch
2525expect_equal(names(arma ), c(" major" ," minor" ," patch" ))
26+ av <- as.package_version(paste(arma , collapse = " ." ))
2627arma <- armadillo_version(TRUE )
2728expect_equal(class(arma ), " integer" )
2829expect_equal(length(arma ), 1L )
30+ pv <- armadillo_version_typed()
31+ expect_inherits(pv , " package_version" )
32+ expect_inherits(pv , " numeric_version" )
33+ expect_equal(pv , av )
2934
3035# # no tests as we have no (current) accessor as we prefer R RNGs
3136expect_warning(armadillo_set_seed_random())
You can’t perform that action at this time.
0 commit comments