Skip to content

Commit

Permalink
added test for querying non main attribute labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Winkelmann committed Nov 6, 2019
1 parent cac0b20 commit 7678894
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test_emuR-requery.database.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@ test_that("hierarchical requery on parallel attrDef works",{

})

test_that("hierarchical requery on non main attributes work",{

# Text beginning with 'a'
sl1 = query(ae, "Phonetic == n")

# requery to Word:Text
slRq = requery_hier(ae, sl1, level = 'Text')

expect_equal(paste0(slRq$labels, collapse = "; "),
"friends; considered; any; resistance; wind; violently; concealing; weaknesses; and; no; new; than")

})


test_that("hierarchical throws warning if badly ordered/multiple levels",{
# warning from various levels
sl1 = query(ae, "Phonetic == n")
Expand Down

0 comments on commit 7678894

Please sign in to comment.