Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent 74a4e0e commit 898199b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions functions/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ test_invalid_removal() {
printf "invalid-test.x\n"
printf "invalid-test.100\n"
printf "invalid-test.1x\n"
} >> input.txt # INPUTS
} >> data/pending/domains_scamadviser.tmp # INPUTS

# EXPECTED OUTPUTS
printf "invalid-test.xn--903fds\n" >> out_raw.txt

{
printf "invalid,invalid-test-com\n"
printf "invalid,100.100.100.100\n"
Expand Down Expand Up @@ -244,7 +245,7 @@ test_redundant_removal() {
test_toplist_removal() {
if [[ "$script_to_test" == 'retrieve' ]]; then
# INPUT
printf "microsoft.com\n" >> data/pending/domains_manual.tmp
printf "microsoft.com\n" >> data/pending/domains_scamadviser.tmp
# EXPECTED OUTPUTS
printf "microsoft.com\n" >> out_manual.txt
printf "toplist,microsoft.com\n" >> out_log.txt
Expand Down Expand Up @@ -336,7 +337,7 @@ TEST_RETRIEVE_VALIDATE() {

# Check entries saved for manual review
if [[ "$script_to_test" == 'retrieve' ]]; then
check_output "data/pending/domains_guntab.com.tmp" "out_manual.txt" "Manual review"
check_output "data/pending/domains_scamadviser.com.tmp" "out_manual.txt" "Manual review"
fi

if [[ "$script_to_test" == 'validate' ]]; then
Expand Down

0 comments on commit 898199b

Please sign in to comment.