Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
class TestMath: def test_add(self): assert 2 + 2 == 4 def test_divide(self): assert 10 / 2 == 5.0 def test_string(): result = "hello".upper() assert result == "HELLO" def test_list(): items = [1, 2, 3] assert len(items) == 3 assert 2 in items
Result
Open