Skip to content

Commit

Permalink
Reordered and regenerated test files for practice exercises.
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyG committed Jul 15, 2023
1 parent 2b607d7 commit 5a299a0
Show file tree
Hide file tree
Showing 116 changed files with 467 additions and 458 deletions.
8 changes: 4 additions & 4 deletions exercises/practice/acronym/acronym_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/acronym/canonical-data.json
# File last updated on 2023-07-15

import unittest

from acronym import (
abbreviate,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/acronym/canonical-data.json
# File last updated on 2023-07-14


class AcronymTest(unittest.TestCase):
def test_basic(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/affine-cipher/affine_cipher_test.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/affine-cipher/canonical-data.json
# File last updated on 2023-07-15

import unittest

from affine_cipher import (
decode,
encode,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/affine-cipher/canonical-data.json
# File last updated on 2023-07-14


class AffineCipherTest(unittest.TestCase):
def test_encode_yes(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/all-your-base/all_your_base_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/all-your-base/canonical-data.json
# File last updated on 2023-07-15

import unittest

from all_your_base import (
rebase,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/all-your-base/canonical-data.json
# File last updated on 2023-07-14


class AllYourBaseTest(unittest.TestCase):
def test_single_bit_one_to_decimal(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/allergies/allergies_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/allergies/canonical-data.json
# File last updated on 2023-07-15

import unittest

from allergies import (
Allergies,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/allergies/canonical-data.json
# File last updated on 2023-07-14


class AllergiesTest(unittest.TestCase):
def test_eggs_not_allergic_to_anything(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/alphametics/alphametics_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/alphametics/canonical-data.json
# File last updated on 2023-07-15

import unittest

from alphametics import (
solve,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/alphametics/canonical-data.json
# File last updated on 2023-07-14


class AlphameticsTest(unittest.TestCase):
def test_puzzle_with_three_letters(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/anagram/anagram_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/anagram/canonical-data.json
# File last updated on 2023-07-15

import unittest

from anagram import (
find_anagrams,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/anagram/canonical-data.json
# File last updated on 2023-07-14


class AnagramTest(unittest.TestCase):
def test_no_matches(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/armstrong-numbers/canonical-data.json
# File last updated on 2023-07-15

import unittest

from armstrong_numbers import (
is_armstrong_number,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/armstrong-numbers/canonical-data.json
# File last updated on 2023-07-14


class ArmstrongNumbersTest(unittest.TestCase):
def test_zero_is_an_armstrong_number(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/atbash-cipher/atbash_cipher_test.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/atbash-cipher/canonical-data.json
# File last updated on 2023-07-15

import unittest

from atbash_cipher import (
decode,
encode,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/atbash-cipher/canonical-data.json
# File last updated on 2023-07-14


class AtbashCipherTest(unittest.TestCase):
def test_encode_yes(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/bank-account/bank_account_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bank-account/canonical-data.json
# File last updated on 2023-07-15

import unittest

from bank_account import (
BankAccount,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bank-account/canonical-data.json
# File last updated on 2023-07-14


class BankAccountTest(unittest.TestCase):
def test_newly_opened_account_has_zero_balance(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/beer-song/beer_song_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/beer-song/canonical-data.json
# File last updated on 2023-07-15

import unittest

from beer_song import (
recite,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/beer-song/canonical-data.json
# File last updated on 2023-07-14


class BeerSongTest(unittest.TestCase):
def test_first_generic_verse(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search-tree/canonical-data.json
# File last updated on 2023-07-15

import unittest

from binary_search_tree import (
BinarySearchTree,
TreeNode,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search-tree/canonical-data.json
# File last updated on 2023-07-14


class BinarySearchTreeTest(unittest.TestCase):
def test_data_is_retained(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/binary-search/binary_search_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search/canonical-data.json
# File last updated on 2023-07-15

import unittest

from binary_search import (
find,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search/canonical-data.json
# File last updated on 2023-07-14


class BinarySearchTest(unittest.TestCase):
def test_finds_a_value_in_an_array_with_one_element(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/bob/bob_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json
# File last updated on 2023-07-15

import unittest

from bob import (
response,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json
# File last updated on 2023-07-14


class BobTest(unittest.TestCase):
def test_stating_something(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/book-store/book_store_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/book-store/canonical-data.json
# File last updated on 2023-07-15

import unittest

from book_store import (
total,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/book-store/canonical-data.json
# File last updated on 2023-07-14


class BookStoreTest(unittest.TestCase):
def test_only_a_single_book(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/bottle-song/bottle_song_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bottle-song/canonical-data.json
# File last updated on 2023-07-15

import unittest

from bottle_song import (
recite,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bottle-song/canonical-data.json
# File last updated on 2023-07-14


class BottleSongTest(unittest.TestCase):
def test_first_generic_verse(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/bowling/bowling_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bowling/canonical-data.json
# File last updated on 2023-07-15

import unittest

from bowling import (
BowlingGame,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/bowling/canonical-data.json
# File last updated on 2023-07-14


class BowlingTest(unittest.TestCase):
def roll_new_game(self, rolls):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/change/change_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/change/canonical-data.json
# File last updated on 2023-07-15

import unittest

from change import (
find_fewest_coins,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/change/canonical-data.json
# File last updated on 2023-07-14


class ChangeTest(unittest.TestCase):
def test_change_for_1_cent(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/circular-buffer/circular_buffer_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/circular-buffer/canonical-data.json
# File last updated on 2023-07-15

import unittest

from circular_buffer import (
Expand All @@ -6,10 +10,6 @@
BufferFullException,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/circular-buffer/canonical-data.json
# File last updated on 2023-07-14


class CircularBufferTest(unittest.TestCase):
def test_reading_empty_buffer_should_fail(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/clock/clock_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/clock/canonical-data.json
# File last updated on 2023-07-15

import unittest

from clock import (
Clock,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/clock/canonical-data.json
# File last updated on 2023-07-14


class ClockTest(unittest.TestCase):
# Create A String Representation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/collatz-conjecture/canonical-data.json
# File last updated on 2023-07-15

import unittest

from collatz_conjecture import (
steps,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/collatz-conjecture/canonical-data.json
# File last updated on 2023-07-14


class CollatzConjectureTest(unittest.TestCase):
def test_zero_steps_for_one(self):
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/complex-numbers/complex_numbers_test.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import math

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/complex-numbers/canonical-data.json
# File last updated on 2023-07-15

import unittest

from complex_numbers import (
ComplexNumber,
)

# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/complex-numbers/canonical-data.json
# File last updated on 2023-07-14


class ComplexNumbersTest(unittest.TestCase):

Expand Down
Loading

0 comments on commit 5a299a0

Please sign in to comment.