Created
October 18, 2020 16:56
-
-
Save tjkhara/11e3bb1af001254c5f0593648be57eea to your computer and use it in GitHub Desktop.
Assert example 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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