Skip to content

Instantly share code, notes, and snippets.

View vakanin's full-sized avatar

Alexander vakanin

  • Sofia, Bulgaria
View GitHub Profile
@vakanin
vakanin / hw2_test.py
Last active August 29, 2015 14:18
test for homework 3
import unittest
from itertools import islice
from itertools import cycle
from math import factorial
import solution
class TestFibonacci(unittest.TestCase):
def test_fibonacci(self):
@vakanin
vakanin / hw2_test.py
Created March 18, 2015 15:03
test for homework 2
import unittest
import solution as s
class ExtractTypeTest(unittest.TestCase):
def test_aalabbalaa(self):
input_ = [('a', 2), ('l', 1), ('error', 0), ('a', 1), ('b', 2),
('a', 1), ('l', 1), ('a', 2)]