Skip to content

Commit

Permalink
Merge pull request #106 from lmullen/fix-skip-grams-test
Browse files Browse the repository at this point in the history
Fix tests for corrected tokenize_skip_ngrams()
  • Loading branch information
juliasilge committed Mar 21, 2018
2 parents 4a62919 + 5dc82ad commit 517da8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-unnest-tokens.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ test_that("tokenizing by ngram and skip ngram works", {
d <- d2 %>% unnest_tokens(ngram, txt, token = "skip_ngrams", n = 4, k = 2)
#expect_equal(nrow(d), 189) does not pass on appveyor
expect_equal(ncol(d), 1)
expect_equal(d$ngram[1], "hope thing that the")
expect_equal(d$ngram[10], "the sings without and")
expect_equal(d$ngram[40], "hope thing that the")
expect_equal(d$ngram[400], "the sings without and")

})

Expand Down

0 comments on commit 517da8e

Please sign in to comment.