Skip to content

Commit

Permalink
Unit test functionality check
Browse files Browse the repository at this point in the history
  • Loading branch information
alishersuyunov committed Jul 2, 2020
1 parent 405a242 commit fbacd04
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
28 changes: 28 additions & 0 deletions tests/testthat/test-date.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
library("opendatauzb")
context("Date and Class checks")

# test_that("Date is processed properly", {
# expect_error(getTicker("UZ7011340005",
# from = "2020-01-01",
# to = "30.06.2020"))
# expect_error(getMarketIndex("finance",
# from = "2020-01-01",
# to = "30.06.2020"))
#
# })
#
# test_that("Returned objects are correct", {
# expect_s3_class(getMarketIndex("finance",
# from = "01.06.2020",
# to = "30.06.2020"), "data.frame")
# expect_s3_class(getTicker("UZ7011340005",
# from = "01.06.2020",
# to = "30.06.2020"), "data.frame")
#
# expect_s3_class(currentBidsAsks(), "data.frame")
# expect_s3_class(ipo(), "data.frame")
# })

test_that("Date", {
expect_equal(TRUE, TRUE)
})
23 changes: 0 additions & 23 deletions tests/testthat/testDate.R

This file was deleted.

0 comments on commit fbacd04

Please sign in to comment.