mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 21:15:01 -06:00
'init'
This commit is contained in:
1
python/two-fer/.exercism/metadata.json
Normal file
1
python/two-fer/.exercism/metadata.json
Normal file
@@ -0,0 +1 @@
|
||||
{"track":"python","exercise":"two-fer","id":"15e2514a48434abdaa898d197a718caf","url":"https://exercism.io/my/solutions/15e2514a48434abdaa898d197a718caf","handle":"Xevion","is_requester":true,"auto_approve":false}
|
||||
20
python/two-fer/two_fer_test.py
Normal file
20
python/two-fer/two_fer_test.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import unittest
|
||||
|
||||
from two_fer import two_fer
|
||||
|
||||
|
||||
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0
|
||||
|
||||
class TwoFerTest(unittest.TestCase):
|
||||
def test_no_name_given(self):
|
||||
self.assertEqual(two_fer(), 'One for you, one for me.')
|
||||
|
||||
def test_a_name_given(self):
|
||||
self.assertEqual(two_fer("Alice"), "One for Alice, one for me.")
|
||||
|
||||
def test_another_name_given(self):
|
||||
self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user