Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import pytest
  2. from . import sample_calculator_program as calc
  3.  
  4. def test_add():
  5. A,B = 10,20
  6. assert calc.add(A,B) == 30
  7.  
  8. A,B = 10.2,20.3
  9. assert calc.add(A,B) == 30.5
  10.  
  11. A,B = "Chawla","Nikhil"
  12. assert calc.add(A,B) == None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement