Browse Source

cleaned up tests

master
boB Rudis 2 months ago
parent
commit
4e6773c526
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      inst/tinytest/test_swiftspeech.R

+ 10
- 1
inst/tinytest/test_swiftspeech.R View File

@ -1,6 +1,15 @@
library(swiftspeech)
parts_of_speech("The comm wasn't working. Feeling increasingly ridiculous, he pushed the button for the 1MC channel several more times. Nothing. He opened his eyes and saw that all the lights on the panel were out. Then he turned around and saw that the lights on the refrigerator and the ovens were out. It wasn’t just the coffeemaker; the entire galley was in open revolt. Holden looked at the ship name, Rocinante, newly stenciled onto the galley wall, and said, Baby, why do you hurt me when I love you so much?") -> res
parts_of_speech(paste0(c(
"The comm wasn't working. Feeling increasingly ridiculous, he pushed",
"the button for the 1MC channel several more times. Nothing. He opened",
"his eyes and saw that all the lights on the panel were out. Then he",
"turned around and saw that the lights on the refrigerator and the",
"ovens were out. It wasn’t just the coffeemaker; the entire galley was",
"in open revolt. Holden looked at the ship name, Rocinante, newly",
"stenciled onto the galley wall, and said, Baby, why do you hurt me",
"when I love you so much?"
), collapse = " ")) -> res
expect_true(inherits(res, "data.frame"))

Loading…
Cancel
Save