Skip to content

Instantly share code, notes, and snippets.

@tjkhara
Created October 18, 2020 16:56
Show Gist options
  • Select an option

  • Save tjkhara/11e3bb1af001254c5f0593648be57eea to your computer and use it in GitHub Desktop.

Select an option

Save tjkhara/11e3bb1af001254c5f0593648be57eea to your computer and use it in GitHub Desktop.
Assert example 1
# Using assert statements and exceptions
def test_IntAssert():
assert 1 == 1
def test_StrAssert():
assert "str" == "str"
def test_floatAssert():
assert 1.0 == 1.0
def test_arrayAssert():
assert [1,2,3] == [1,2,3]
def test_dictAssert():
assert {"1" : 1} == {"1" : 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment