Write a python function to print positive numbers in a list.
def pos_nos(list1):
  for num in list1: 
    if num >= 0: 
       return num 
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a python function to print positive numbers in a list.
def pos_nos(list1):
  for num in list1: 
    if num >= 0: 
       return num [/INST]assert pos_nos([-1,-2,1,2]) == 1,2
assert pos_nos([3,4,-5]) == 3,4
assert pos_nos([-2,-3,1]) == 1</s>