-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a62282
commit 785d69a
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
test_that("get_variabel_infos", { | ||
expect_equal(get_variabel_infos("get_meetings")$reference_url, "https://www.ly.gov.tw/Pages/List.aspx?nodeid=154") | ||
expect_equal(get_variabel_infos("get_parlquestions")$reference_url, "https://data.ly.gov.tw/getds.action?id=6") | ||
expect_equal(get_variabel_infos("get_executive_response")$reference_url, "https://data.ly.gov.tw/getds.action?id=2") | ||
expect_equal(get_variabel_infos("get_bills")$reference_url, "https://www.ly.gov.tw/Pages/List.aspx?nodeid=153") | ||
expect_equal(get_variabel_infos("get_legislators")$reference_url, "https://data.ly.gov.tw/getds.action?id=16") | ||
expect_equal(get_variabel_infos("get_bills_2")$reference_url, "https://data.ly.gov.tw/getds.action?id=1") | ||
expect_equal(get_variabel_infos("get_caucus_meetings")$reference_url, "https://data.ly.gov.tw/getds.action?id=8") | ||
expect_equal(get_variabel_infos("get_public_debates")$reference_url, "https://data.ly.gov.tw/getds.action?id=7") | ||
expect_equal(get_variabel_infos("get_speech_video")$reference_url, "https://data.ly.gov.tw/getds.action?id=148") | ||
}) | ||
|
||
test_that("get_variabel_infos", { | ||
expect_error(get_variabel_infos("x"), | ||
"Use correct funtion names below in character format: | ||
get_bills: the records of the bills | ||
get_bills_2: the records of legislators and the government proposals | ||
get_meetings: the spoken meeting records | ||
get_caucus_meetings: the meeting records of cross-caucus session | ||
get_speech_video: the full video information of meetings and committees | ||
get_public_debates: the records of national public debates | ||
get_parlquestions: the records of parliamentary questions | ||
get_executive_response: the records of the questions answered by the executives") | ||
}) | ||
# test_that("get_variable_info", { | ||
# expect_equal(get_variable_info("get_meetings")$reference_url, "https://www.ly.gov.tw/Pages/List.aspx?nodeid=154") | ||
# expect_equal(get_variable_info("get_parlquestions")$reference_url, "https://data.ly.gov.tw/getds.action?id=6") | ||
# expect_equal(get_variable_info("get_executive_response")$reference_url, "https://data.ly.gov.tw/getds.action?id=2") | ||
# expect_equal(get_variable_info("get_bills")$reference_url, "https://www.ly.gov.tw/Pages/List.aspx?nodeid=153") | ||
# expect_equal(get_variable_info("get_legislators")$reference_url, "https://data.ly.gov.tw/getds.action?id=16") | ||
# expect_equal(get_variable_info("get_bills_2")$reference_url, "https://data.ly.gov.tw/getds.action?id=20") | ||
# expect_equal(get_variable_info("get_caucus_meetings")$reference_url, "https://data.ly.gov.tw/getds.action?id=8") | ||
# expect_equal(get_variable_info("get_public_debates")$reference_url, "https://data.ly.gov.tw/getds.action?id=7") | ||
# expect_equal(get_variable_info("get_speech_video")$reference_url, "https://data.ly.gov.tw/getds.action?id=148") | ||
# }) | ||
# | ||
# test_that("get_variable_info", { | ||
# expect_error(get_variable_info("x"), | ||
# "Use correct funtion names below in character format: | ||
# get_bills: the records of the bills | ||
# get_bills_2: the records of legislators and the government proposals | ||
# get_meetings: the spoken meeting records | ||
# get_caucus_meetings: the meeting records of cross-caucus session | ||
# get_speech_video: the full video information of meetings and committees | ||
# get_public_debates: the records of national public debates | ||
# get_parlquestions: the records of parliamentary questions | ||
# get_executive_response: the records of the questions answered by the executives") | ||
# }) |