Marc Kupietz | 6ddece4 | 2023-12-18 17:02:36 +0100 | [diff] [blame] | 1 | test_that("textMetadata works", { |
| 2 | skip_if_offline() |
| 3 | m <- new("KorAPConnection") %>% textMetadata(c("WUD17/B96/57558", "WUD17/A97/08541")) |
| 4 | expect("textType" %in% names(m), "textMetadata value should contain a textType column") |
| 5 | }) |
| 6 | |
| 7 | |
| 8 | test_that("textMetadata works for unknown text sigles", { |
| 9 | skip_if_offline() |
| 10 | m <- new("KorAPConnection") %>% textMetadata(c("WUD17/B96/57558", "unknownsigle")) |
| 11 | expect("errors" %in% names(m), "textMetadata should return an errors column if a text does not exist") |
| 12 | }) |