Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/all-your-base/all_your_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.3.0

class AllYourBaseTests(unittest.TestCase):
class AllYourBaseTest(unittest.TestCase):

def test_single_bit_to_one_decimal(self):
self.assertEqual(rebase(2, [1], 10), [1])
Expand Down
2 changes: 1 addition & 1 deletion exercises/allergies/allergies_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class AllergiesTests(unittest.TestCase):
class AllergiesTest(unittest.TestCase):
def test_no_allergies_means_not_allergic(self):
allergies = Allergies(0)
self.assertIs(allergies.is_allergic_to('peanuts'), False)
Expand Down
2 changes: 1 addition & 1 deletion exercises/alphametics/alphametics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class TestAlphametics(unittest.TestCase):
class AlphameticsTest(unittest.TestCase):
def test_puzzle_with_three_letters(self):
self.assertEqual(solve("I + BB == ILL"), {"I": 1, "B": 9, "L": 0})

Expand Down
2 changes: 1 addition & 1 deletion exercises/anagram/anagram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class AnagramTests(unittest.TestCase):
class AnagramTest(unittest.TestCase):
def test_no_matches(self):
candidates = ["hello", "world", "zombies", "pants"]
self.assertEqual(detect_anagrams("diaper", candidates), [])
Expand Down
2 changes: 1 addition & 1 deletion exercises/armstrong-numbers/armstrong_numbers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0

class ArmstrongTests(unittest.TestCase):
class ArmstrongNumbersTest(unittest.TestCase):

def test_single_digit_numbers_are_armstrong_numbers(self):
self.assertIs(is_armstrong(5), True)
Expand Down
2 changes: 1 addition & 1 deletion exercises/bank-account/bank_account_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from bank_account import BankAccount


class BankAccountTests(unittest.TestCase):
class BankAccountTest(unittest.TestCase):

def setUp(self):
self.account = BankAccount()
Expand Down
2 changes: 1 addition & 1 deletion exercises/beer-song/beer_song_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.1.0

class BeerTest(unittest.TestCase):
class BeerSongTest(unittest.TestCase):
def test_first_generic_verse(self):
expected = [
"99 bottles of beer on the wall, 99 bottles of beer.",
Expand Down
2 changes: 1 addition & 1 deletion exercises/binary-search-tree/binary_search_tree_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0

class BinarySearchTreeTests(unittest.TestCase):
class BinarySearchTreeTest(unittest.TestCase):

def test_data_is_retained(self):
expected = TreeNode('4', None, None)
Expand Down
2 changes: 1 addition & 1 deletion exercises/binary-search/binary_search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class BinarySearchTests(unittest.TestCase):
class BinarySearchTest(unittest.TestCase):
def test_finds_value_in_array_with_one_element(self):
self.assertEqual(binary_search([6], 6), 0)

Expand Down
2 changes: 1 addition & 1 deletion exercises/binary/binary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from binary import parse_binary


class BinaryTests(unittest.TestCase):
class BinaryTest(unittest.TestCase):
def test_binary_1_is_decimal_1(self):
self.assertEqual(parse_binary("1"), 1)

Expand Down
2 changes: 1 addition & 1 deletion exercises/bob/bob_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class BobTests(unittest.TestCase):
class BobTest(unittest.TestCase):
def test_stating_something(self):
self.assertEqual(bob.hey("Tom-ay-to, tom-aaaah-to."), "Whatever.")

Expand Down
2 changes: 1 addition & 1 deletion exercises/book-store/book_store_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0

class BookStoreTests(unittest.TestCase):
class BookStoreTest(unittest.TestCase):
def test_only_a_single_book(self):
self.assertEqual(calculate_total([1]), 800)

Expand Down
2 changes: 1 addition & 1 deletion exercises/bowling/bowling_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class BowlingTests(unittest.TestCase):
class BowlingTest(unittest.TestCase):

def roll(self, rolls):
[self.game.roll(roll) for roll in rolls]
Expand Down
2 changes: 1 addition & 1 deletion exercises/bracket-push/bracket_push_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0

class BracketPushTests(unittest.TestCase):
class BracketPushTest(unittest.TestCase):
def test_paired_square_brackets(self):
self.assertEqual(is_paired("[]"), True)

Expand Down
2 changes: 1 addition & 1 deletion exercises/collatz-conjecture/collatz_conjecture_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class CollatzConjectureTests(unittest.TestCase):
class CollatzConjectureTest(unittest.TestCase):

def test_zero_steps_for_one(self):
self.assertEqual(collatz_steps(1), 0)
Expand Down
2 changes: 1 addition & 1 deletion exercises/diamond/diamond_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class DiamondTests(unittest.TestCase):
class DiamondTest(unittest.TestCase):
def test_degenerate_case_with_a_single_row(self):
self.assertMultiLineEqual(make_diamond('A'), 'A\n')

Expand Down
2 changes: 1 addition & 1 deletion exercises/etl/etl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0

class TransformTest(unittest.TestCase):
class EtlTest(unittest.TestCase):
def test_a_single_letter(self):
self.assertEqual(transform({1: ['A']}), {'a': 1})

Expand Down
2 changes: 1 addition & 1 deletion exercises/flatten-array/flatten_array_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class FlattenArrayTests(unittest.TestCase):
class FlattenArrayTest(unittest.TestCase):

def test_no_nesting(self):
self.assertEqual(flatten([0, 1, 2]), [0, 1, 2])
Expand Down
2 changes: 1 addition & 1 deletion exercises/grade-school/grade_school_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from grade_school import School


class SchoolTest(unittest.TestCase):
class GradeSchoolTest(unittest.TestCase):
def setUp(self):
# assertCountEqual is py3, py2 only knowns assetItemsEqual
if not hasattr(self, 'assertCountEqual'):
Expand Down
2 changes: 1 addition & 1 deletion exercises/hello-world/hello_world_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class HelloWorldTests(unittest.TestCase):
class HelloWorldTest(unittest.TestCase):
def test_hello(self):
self.assertEqual(hello_world.hello(), 'Hello, World!')

Expand Down
2 changes: 1 addition & 1 deletion exercises/house/house_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.1.0

class VerseTest(unittest.TestCase):
class HouseTest(unittest.TestCase):
def test_verse_one(self):
expected = ["This is the house that Jack built."]
self.assertEqual(recite(1, 1), expected)
Expand Down
2 changes: 1 addition & 1 deletion exercises/isbn-verifier/isbn_verifier_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.4.0

class IsbnVerifierTests(unittest.TestCase):
class IsbnVerifierTest(unittest.TestCase):

def test_valid_isbn_number(self):
self.assertIs(verify('3-598-21508-8'), True)
Expand Down
2 changes: 1 addition & 1 deletion exercises/isogram/isogram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class TestIsogram(unittest.TestCase):
class IsogramTest(unittest.TestCase):

def test_empty_string(self):
self.assertIs(is_isogram(""), True)
Expand Down
2 changes: 1 addition & 1 deletion exercises/kindergarten-garden/kindergarten_garden_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class KindergartenGardenTests(unittest.TestCase):
class KindergartenGardenTest(unittest.TestCase):
def test_garden_with_single_student(self):
self.assertEqual(
Garden("RC\nGG").plants("Alice"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class SeriesTest(unittest.TestCase):
class LargestSeriesProductTest(unittest.TestCase):
def test_finds_the_largest_product_if_span_equals_length(self):
self.assertEqual(largest_product("29", 2), 18)

Expand Down
2 changes: 1 addition & 1 deletion exercises/leap/leap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0

class YearTest(unittest.TestCase):
class LeapTest(unittest.TestCase):
def test_year_not_divisible_by_4(self):
self.assertIs(is_leap_year(2015), False)

Expand Down
2 changes: 1 addition & 1 deletion exercises/linked-list/linked_list_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from linked_list import LinkedList


class LinkedListTests(unittest.TestCase):
class LinkedListTest(unittest.TestCase):
def setUp(self):
self.list = LinkedList()

Expand Down
2 changes: 1 addition & 1 deletion exercises/luhn/luhn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class LuhnTests(unittest.TestCase):
class LuhnTest(unittest.TestCase):
def test_single_digit_strings_can_not_be_valid(self):
self.assertIs(Luhn("1").is_valid(), False)

Expand Down
2 changes: 1 addition & 1 deletion exercises/markdown/markdown_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class TestMarkdown(unittest.TestCase):
class MarkdownTest(unittest.TestCase):

def test_paragraph(self):
self.assertEqual(parse_markdown('This will be a paragraph'),
Expand Down
2 changes: 1 addition & 1 deletion exercises/nth-prime/nth_prime_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.1.0

class NthPrimeTests(unittest.TestCase):
class NthPrimeTest(unittest.TestCase):
def test_first_prime(self):
self.assertEqual(nth_prime(1), 2)

Expand Down
2 changes: 1 addition & 1 deletion exercises/nucleotide-count/nucleotide_count_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from nucleotide_count import count, nucleotide_counts


class DNATest(unittest.TestCase):
class NucleotideCountTest(unittest.TestCase):
def test_empty_dna_string_has_no_adenosine(self):
self.assertEqual(count('', 'A'), 0)

Expand Down
2 changes: 1 addition & 1 deletion exercises/ocr-numbers/ocr_numbers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class OcrTest(unittest.TestCase):
class OcrNumbersTest(unittest.TestCase):
def test_recognizes_0(self):
self.assertEqual(convert([" _ ",
"| |",
Expand Down
2 changes: 1 addition & 1 deletion exercises/palindrome-products/palindrome_products_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class PalindromesTests(unittest.TestCase):
class PalindromeProductsTest(unittest.TestCase):
def test_smallest_palindrome_from_single_digit_factors(self):
value, factors = smallest_palindrome(min_factor=1, max_factor=9)
self.assertEqual(value, 1)
Expand Down
2 changes: 1 addition & 1 deletion exercises/pangram/pangram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0

class PangramTests(unittest.TestCase):
class PangramTest(unittest.TestCase):

def test_sentence_empty(self):
self.assertIs(is_pangram(''), False)
Expand Down
2 changes: 1 addition & 1 deletion exercises/phone-number/phone_number_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0

class PhoneTest(unittest.TestCase):
class PhoneNumberTest(unittest.TestCase):
def test_cleans_number(self):
number = Phone("(223) 456-7890").number
self.assertEqual(number, "2234567890")
Expand Down
2 changes: 1 addition & 1 deletion exercises/pig-latin/pig_latin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class PigLatinTests(unittest.TestCase):
class PigLatinTest(unittest.TestCase):
def test_word_beginning_with_a(self):
self.assertEqual(translate("apple"), "appleay")

Expand Down
2 changes: 1 addition & 1 deletion exercises/point-mutations/point_mutations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from point_mutations import hamming_distance


class DNATest(unittest.TestCase):
class PointMutationsTest(unittest.TestCase):
def test_no_difference_between_empty_strands(self):
self.assertEqual(hamming_distance('', ''), 0)

Expand Down
2 changes: 1 addition & 1 deletion exercises/protein-translation/protein_translation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from problem-specifications/canonical-data.json @ v1.1.0

class ProteinTranslationTests(unittest.TestCase):
class ProteinTranslationTest(unittest.TestCase):

def test_AUG_translates_to_methionine(self):
self.assertEqual(proteins('AUG'), ['Methionine'])
Expand Down
2 changes: 1 addition & 1 deletion exercises/rail-fence-cipher/rail_fence_cipher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class RailFenceTests(unittest.TestCase):
class RailFenceCipherTest(unittest.TestCase):
def test_encode_with_two_rails(self):
self.assertMultiLineEqual(
encode('XOXOXOXOXOXOXOXOXO', 2), 'XXXXXXXXXOOOOOOOOO')
Expand Down
2 changes: 1 addition & 1 deletion exercises/rational-numbers/rational_numbers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0

class RationalTests(unittest.TestCase):
class RationalNumbersTest(unittest.TestCase):

# Test addition
def test_add_two_positive(self):
Expand Down
2 changes: 1 addition & 1 deletion exercises/react/react_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v2.0.0

class ReactTests(unittest.TestCase):
class ReactTest(unittest.TestCase):

def test_input_cells_have_a_value(self):
input_ = InputCell(10)
Expand Down
2 changes: 1 addition & 1 deletion exercises/rectangles/rectangles_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class WordTest(unittest.TestCase):
class RectanglesTest(unittest.TestCase):
def test_no_rows(self):
self.assertEqual(count([]), 0)

Expand Down
2 changes: 1 addition & 1 deletion exercises/reverse-string/reverse_string_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class ReverseStringTests(unittest.TestCase):
class ReverseStringTest(unittest.TestCase):
def test_empty_string(self):
self.assertEqual(reverse(''), '')

Expand Down
2 changes: 1 addition & 1 deletion exercises/rna-transcription/rna_transcription_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class RNATranscriptionTests(unittest.TestCase):
class RnaTranscriptionTest(unittest.TestCase):

def test_transcribes_cytosine_to_guanine(self):
self.assertEqual(to_rna('C'), 'G')
Expand Down
Loading