Skip to content

Commit

Permalink
changed test array names and exported range in global array
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuseppeBnn committed Nov 8, 2023
1 parent cf83ec4 commit a88fe82
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
##Insert number 3
##The number 3 is [not] present in the array.
##
test_array = [2,4,6,8,10,12,14,16,18,20]
success_test_array = [2,4,6,8,10,12,14,16,18,20]
fail_test_array = range(35,100)
import sys
sys.path.append('../src')

import verify

def test_verify():
for i in test_array:
assert verify.verify(i) == True
for i in range(35,55):
if i not in test_array:
assert verify.verify(i) == False
for i in success_test_array:
assert verify.is_element_in_list(i) == True
for i in fail_test_array:
if i not in success_test_array:
assert verify.is_element_in_list(i) == False

0 comments on commit a88fe82

Please sign in to comment.