Update it all, VisualStudio Changes

This commit is contained in:
2016-08-23 12:33:06 -05:00
parent 2a0c6f9e45
commit b8814259b5
136 changed files with 180080 additions and 66 deletions

View File

@@ -0,0 +1,2 @@
def add(x, y):
return x + y

View File

@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
import example
class ExampleTests(unittest.TestCase):
def test_add_2_and_2(self):
self.assertEqual(
4,
example.add(2, 2)
)
def test_add_12_and_24(self):
self.assertEqual(
36,
example.add(12, 24)
)
def test_add_100_and_1(self):
self.assertEqual(
101,
example.add(100, 1)
)
def test_add_2_and_minus_2(self):
self.assertEqual(
0,
example.add(2, -2)
)
if __name__ == '__main__':
unittest.main()