a03f9ddb14dcc32e9cf7e6a0e68cd1ca66ee771c
under construction
Like LeetCode
but more lightweight
if you want to contribute write tests like this:
import unittest
#<!-- The Function the User needs to write -->
# This is importantly commented out. The UnitTest tests this if uncommented.
# This is only here for reference
#
# def revstring(x):
# return x[::-1]
#<!-- This Test, test if the function works -->
class TestSolution(unittest.TestCase):
def test_simple(self):
# !! This needs to be dynamic ; if the user enters some shit then it is supposed to work too
x="";
self.assertEqual(revstring(x), x[::-1])
if __name__ == "__main__":
unittest.main()
Description
Languages
Python
64.1%
JavaScript
18.1%
HTML
9.3%
Markdown
8.1%
Shell
0.3%