Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Dec 26, 2024
1 parent f76bfa1 commit 2b45eb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ TEST_RETRIEVE_VALIDATE() {
test_whitelist_blacklist
test_whitelisted_tld_removal
test_invalid_removal
test_toplist_removal
test_toplist_check

if [[ "$script_to_test" == 'retrieve' ]]; then
test_manual_addition
Expand Down Expand Up @@ -464,13 +464,13 @@ test_invalid_removal() {
printf "invalid-test.com/subfolder\n"
printf "invalid-test-.com\n"
printf "i.com\n"
printf "in.com\n"
printf "an.com\n"
printf "dead-domain.com\n"
} >> "$DEAD_DOMAINS"

# EXPECTED OUTPUT
printf "invalid-test.xn--903fds\n" >> out_raw.txt
printf "in.com\n" >> out_dead.txt
printf "an.com\n" >> out_dead.txt
printf "dead-domain.com\n" >> out_dead.txt
{
printf "invalid,invalid-test-com,raw\n"
Expand All @@ -484,8 +484,8 @@ test_invalid_removal() {
} >> out_log.txt
}

# TEST: removal of domains found in toplist
test_toplist_removal() {
# TEST: checking of domains against toplist
test_toplist_check() {
if [[ "$script_to_test" == 'retrieve' ]]; then
# INPUT
printf "microsoft.com\n" >> data/pending/domains_scamadviser.com.tmp
Expand Down

0 comments on commit 2b45eb5

Please sign in to comment.