@@ -56,6 +56,15 @@ test_that("is_alpha_param", {
5656
5757})
5858
59+
60+ test_that(" is_b_pop_sizes_param" , {
61+
62+ expect_true(is_b_pop_sizes_param(create_b_pop_sizes_param()))
63+ expect_false(is_b_pop_sizes_param(" nonsense" ))
64+
65+ })
66+
67+
5968test_that(" is_beta_param" , {
6069
6170 expect_true(is_beta_param(create_beta_param()))
@@ -74,6 +83,7 @@ test_that("is_freq_param", {
7483
7584 expect_true(is_freq_param(create_freq_param()))
7685 expect_false(is_freq_param(" nonsense" ))
86+ expect_false(is_freq_param(create_b_pop_sizes_param()))
7787})
7888
7989test_that(" is_freq_param, devious" , {
@@ -85,6 +95,14 @@ test_that("is_freq_param, devious", {
8595 h <- g [names(g ) != " lower" ]
8696 expect_false(is_freq_param(h ))
8797
98+ # No 'upper'
99+ h <- g [names(g ) != " upper" ]
100+ expect_false(is_freq_param(h ))
101+
102+ # No 'value'
103+ h <- g [names(g ) != " value" ]
104+ expect_false(is_freq_param(h ))
105+
88106 # No 'estimate'
89107 h <- g [names(g ) != " estimate" ]
90108 expect_false(is_freq_param(h ))
@@ -94,6 +112,25 @@ test_that("is_freq_param, devious", {
94112 expect_false(is_freq_param(h ))
95113})
96114
115+ test_that(" is_kappa_param" , {
116+
117+ expect_true(is_kappa_param(create_kappa_param()))
118+ expect_false(is_kappa_param(" nonsense" ))
119+ })
120+
121+ test_that(" is_kappa_param, devious" , {
122+
123+ g <- create_kappa_param()
124+ expect_true(is_kappa_param(g ))
125+
126+ # No 'lower'
127+ h <- g [names(g ) != " lower" ]
128+ expect_false(is_kappa_param(h ))
129+
130+ # No 'estimate'
131+ h <- g [names(g ) != " estimate" ]
132+ expect_false(is_kappa_param(h ))
133+ })
97134
98135test_that(" is_kappa_1_param" , {
99136
0 commit comments