Skip to content

Commit

Permalink
Fix test of output proportions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantmoore committed Jun 5, 2019
1 parent 110eaaa commit 79f5fd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/testthat/test.expectednumbers.R

This file was deleted.

13 changes: 13 additions & 0 deletions tests/testthat/test_validoutput.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
context("ValidProportions")
library(botscan)

example <- botscan("#rstats")

test_that("proportions calculated are between 0 and 1, inclusive",
{
expect_lte(example$prop_user_level_bots, 1)
expect_gte(example$prop_user_level_bots, 0)
expect_lte(example$prop_convo_level_bots, 1)
expect_gte(example$prop_convo_level_bots, 0)
}
)

0 comments on commit 79f5fd5

Please sign in to comment.