@@ -10,7 +10,7 @@ test_that("textstat_lexdiv computation is correct", {
10
10
)
11
11
})
12
12
13
- test_that(" textstat_lexdiv CTTR works correct " , {
13
+ test_that(" textstat_lexdiv CTTR works correctly " , {
14
14
mydfm <- dfm(c(d1 = " b a b a b a b a" ,
15
15
d2 = " a a b b" ))
16
16
@@ -21,7 +21,7 @@ test_that("textstat_lexdiv CTTR works correct", {
21
21
)
22
22
})
23
23
24
- test_that(" textstat_lexdiv R works correct " , {
24
+ test_that(" textstat_lexdiv R works correctly " , {
25
25
mydfm <- dfm(c(d1 = " b a b a b a b a" ,
26
26
d2 = " a a b b" ))
27
27
@@ -32,7 +32,7 @@ test_that("textstat_lexdiv R works correct", {
32
32
)
33
33
})
34
34
35
- test_that(" textstat_lexdiv C works correct " , {
35
+ test_that(" textstat_lexdiv C works correctly " , {
36
36
mydfm <- dfm(c(d1 = " b a b a b a b a" ,
37
37
d2 = " a a b b" ))
38
38
@@ -43,7 +43,7 @@ test_that("textstat_lexdiv C works correct", {
43
43
)
44
44
})
45
45
46
- test_that(" textstat_lexdiv Maas works correct " , {
46
+ test_that(" textstat_lexdiv Maas works correctly " , {
47
47
mydfm <- dfm(c(d1 = " b a b a b a b a" ,
48
48
d2 = " a a b b" ))
49
49
@@ -54,7 +54,7 @@ test_that("textstat_lexdiv Maas works correct", {
54
54
)
55
55
})
56
56
57
- test_that(" textstat_lexdiv I works correct " , {
57
+ test_that(" textstat_lexdiv Yule's I works correctly " , {
58
58
mydfm <- dfm(c(d1 = " a b c" ,
59
59
d2 = " a a b b c" ))
60
60
expect_equivalent(
@@ -269,7 +269,7 @@ test_that("textstat_lexdiv.tokens raises errors if parameters for moving measure
269
269
# )
270
270
})
271
271
272
- test_that(" textstat_lexdiv.tokens MATTR works correct on its own" , {
272
+ test_that(" textstat_lexdiv.tokens MATTR works correctly on its own" , {
273
273
mytxt <- " one one two one one two one"
274
274
mytoken <- tokens(mytxt )
275
275
wsize2_MATTR <- (1 / 2 + 1 + 1 + 1 / 2 + 1 + 1 ) / 6
@@ -290,7 +290,7 @@ test_that("textstat_lexdiv.tokens MATTR works correct on its own", {
290
290
)
291
291
})
292
292
293
- test_that(" textstat_lexdiv.tokens MATTR works correct in conjunction with static measures" , {
293
+ test_that(" textstat_lexdiv.tokens MATTR works correctly in conjunction with static measures" , {
294
294
mytxt <- " one one two one one two one"
295
295
mytoken <- tokens(mytxt )
296
296
wsize2_MATTR <- (1 / 2 + 1 + 1 + 1 / 2 + 1 + 1 ) / 6
@@ -301,7 +301,7 @@ test_that("textstat_lexdiv.tokens MATTR works correct in conjunction with static
301
301
)
302
302
})
303
303
304
- test_that(" textstat_lexdiv.tokens MSTTR works correct on its own" , {
304
+ test_that(" textstat_lexdiv.tokens MSTTR works correctly on its own" , {
305
305
mytxt <- " apple orange apple orange pear pear apple orange"
306
306
mytoken <- tokens(mytxt )
307
307
wsize2_MSTTR <- (2 / 2 + 2 / 2 + 1 / 2 + 2 / 2 ) / 4
@@ -329,7 +329,7 @@ test_that("textstat_lexdiv.tokens MSTTR works correct on its own", {
329
329
textstat_lexdiv(mytoken , measure = " TTR" )[[2 ]])
330
330
})
331
331
332
- test_that(" textstat_lexdiv.tokens MSTTR works correct in conjunction with static measures" , {
332
+ test_that(" textstat_lexdiv.tokens MSTTR works correctly in conjunction with static measures" , {
333
333
mytxt <- " apple orange apple orange pear pear apple orange"
334
334
mytoken <- tokens(mytxt )
335
335
wsize2_MSTTR <- (2 / 2 + 2 / 2 + 1 / 2 + 2 / 2 ) / 4
0 commit comments