Module talk:TwitterSnowflake/testcases

9 of 18 tests failed.

test_getDate_before_epoch
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 20 | date = January 1, 2015}} -1 -1
test_getDate_date_match
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 1, 2021}} 0 0
test_getDate_date_off_by_five
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 6, 2021}} 5 5
test_getDate_date_off_by_one
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 2, 2021}} 1 1
test_getDate_invalid_id_str
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360?s=19 | date = January 1, 2021}} -2 -2
test_snowflakeToDate_custom_epoch
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 797545051047460888 | epoch = 1420070400}} January 9, 2021 January 9, 2021
test_snowflakeToDate_custom_output_format
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 1345021162959503360 | format = %e %B %Y}} 1 January 2021 1 January 2021
test_snowflakeToDate_only_id
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 1345021162959503360}} January 1, 2021 January 1, 2021
test_snowflakeToDate_weird_breaking_date
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 574608900537761792}} March 8, 2015 March 8, 2015
test_zzsandbox_getDate_before_epoch
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 20 | date = January 1, 2015}} -1 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_match
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 1, 2021}} 0 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_off_by_five
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 6, 2021}} 5 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_off_by_one
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 2, 2021}} 1 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_invalid_id_str
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360?s=19 | date = January 1, 2021}} -2 Script error: The function "getDate" does not exist.
test_zzsandbox_snowflakeToDate_custom_epoch
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 797545051047460888 | epoch = 1420070400}} January 9, 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_custom_output_format
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 1345021162959503360 | format = %e %B %Y}} 1 January 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_only_id
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 1345021162959503360}} January 1, 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_weird_breaking_date
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 574608900537761792}} March 8, 2015 Script error: The function "snowflakeToDate" does not exist.

9 of 18 tests failed.

test_getDate_before_epoch
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 20 | date = January 1, 2015}} -1 -1
test_getDate_date_match
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 1, 2021}} 0 0
test_getDate_date_off_by_five
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 6, 2021}} 5 5
test_getDate_date_off_by_one
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360 | date = January 2, 2021}} 1 1
test_getDate_invalid_id_str
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | getDate | id_str = 1345021162959503360?s=19 | date = January 1, 2021}} -2 -2
test_snowflakeToDate_custom_epoch
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 797545051047460888 | epoch = 1420070400}} January 9, 2021 January 9, 2021
test_snowflakeToDate_custom_output_format
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 1345021162959503360 | format = %e %B %Y}} 1 January 2021 1 January 2021
test_snowflakeToDate_only_id
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 1345021162959503360}} January 1, 2021 January 1, 2021
test_snowflakeToDate_weird_breaking_date
Text Expected Actual
checkY {{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 574608900537761792}} March 8, 2015 March 8, 2015
test_zzsandbox_getDate_before_epoch
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 20 | date = January 1, 2015}} -1 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_match
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 1, 2021}} 0 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_off_by_five
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 6, 2021}} 5 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_date_off_by_one
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360 | date = January 2, 2021}} 1 Script error: The function "getDate" does not exist.
test_zzsandbox_getDate_invalid_id_str
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | getDate | id_str = 1345021162959503360?s=19 | date = January 1, 2021}} -2 Script error: The function "getDate" does not exist.
test_zzsandbox_snowflakeToDate_custom_epoch
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 797545051047460888 | epoch = 1420070400}} January 9, 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_custom_output_format
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 1345021162959503360 | format = %e %B %Y}} 1 January 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_only_id
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 1345021162959503360}} January 1, 2021 Script error: The function "snowflakeToDate" does not exist.
test_zzsandbox_snowflakeToDate_weird_breaking_date
Text Expected Actual
☒N {{#invoke:TwitterSnowflake/sandbox | snowflakeToDate | id_str = 574608900537761792}} March 8, 2015 Script error: The function "snowflakeToDate" does not exist.

no run/run_tests

Start a discussion about improving the Module:TwitterSnowflake/testcases page

Start a discussion