Skip to content

Commit

Permalink
tests: test potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Dec 26, 2024
1 parent 5627153 commit f76bfa1
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 @@ -398,6 +398,9 @@ test_whitelisted_tld_removal() {

# TEST: removal of non-domain entries
test_invalid_removal() {
# in.com is in the toplist
printf "in.com\n" >> "$BLACKLIST"

if [[ "$script_to_test" == 'retrieve' ]]; then
# INPUT
{
Expand All @@ -415,9 +418,6 @@ test_invalid_removal() {
printf "i.com\n"
} >> data/pending/domains_scamadviser.com.tmp

# in.com is in the toplist
printf "in.com\n" >> "$BLACKLIST"

# EXPECTED OUTPUT
# The retrieval script saves invalid entries to the manual review file
{
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 "qn.com\n"
printf "in.com\n"
printf "dead-domain.com\n"
} >> "$DEAD_DOMAINS"

# EXPECTED OUTPUT
printf "invalid-test.xn--903fds\n" >> out_raw.txt
printf "qn.com\n" >> out_dead.txt
printf "in.com\n" >> out_dead.txt
printf "dead-domain.com\n" >> out_dead.txt
{
printf "invalid,invalid-test-com,raw\n"
Expand Down

0 comments on commit f76bfa1

Please sign in to comment.