Skip to content

Commit

Permalink
xpython: first pass standardizing exercise names #344
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Engle committed Aug 17, 2016
1 parent 3a4c583 commit 9ae3ba6
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion exercises/beer-song/beer_song_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from beer import song, verse
from beer_song import song, verse


class BeerTest(unittest.TestCase):
Expand Down
7 changes: 5 additions & 2 deletions exercises/circular-buffer/circular_buffer_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import unittest

from circular_buffer import CircularBuffer
from circular_buffer import BufferFullException, BufferEmptyException
from circular_buffer import (
CircularBuffer,
BufferFullException,
BufferEmptyException
)


class CircularBufferTest(unittest.TestCase):
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 @@ -2,7 +2,7 @@
from types import GeneratorType
import unittest

from school import School
from grade_school import School


class SchoolTest(unittest.TestCase):
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
@@ -1,6 +1,6 @@
import unittest

from garden import Garden
from kindergarten_garden import Garden


class KindergartenGardenTests(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""
import unittest

from series import largest_product
from largest_series_product import largest_product


class SeriesTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/leap/leap_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from year import is_leap_year
from leap import is_leap_year


class YearTest(unittest.TestCase):
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
@@ -1,6 +1,6 @@
import unittest

from prime import nth_prime
from nth_prime import nth_prime


class NthPrimeTests(unittest.TestCase):
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 @@ -6,7 +6,7 @@
"""
import unittest

from dna import count, nucleotide_counts
from nucleotide_count import count, nucleotide_counts


class DNATest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/ocr-numbers/ocr_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import unittest

from ocr import grid, number
from ocr_numbers import grid, number


class OcrTest(unittest.TestCase):
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 @@ -13,7 +13,7 @@

import unittest

from palindrome import smallest_palindrome, largest_palindrome
from palindrome_products import smallest_palindrome, largest_palindrome


class PalindromesTests(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/perfect-numbers/perfect_numbers_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from natural_numbers import is_perfect
from perfect_numbers import is_perfect


class PerfectNumbersTest(unittest.TestCase):
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
@@ -1,6 +1,6 @@
import unittest

from phone import Phone
from phone_number import Phone


class PhoneTest(unittest.TestCase):
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
@@ -1,6 +1,6 @@
import unittest

from dna import hamming_distance
from point_mutations import hamming_distance


class DNATest(unittest.TestCase):
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
@@ -1,6 +1,6 @@
import unittest

from dna import to_rna
from rna_transcription import to_rna


class DNATests(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/robot-name/robot_name_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from robot import Robot
from robot_name import Robot
import random


Expand Down
2 changes: 1 addition & 1 deletion exercises/roman-numerals/roman_numerals_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

import roman
import roman_numerals


class RomanTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/scrabble-score/scrabble_score_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from scrabble import score
from scrabble_score import score


class WordTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/secret-handshake/handshake_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from handshake import handshake, code
from secret_handshake import handshake, code


class HandshakeTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/simple-cipher/simple_cipher_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from cipher import Caesar, Cipher
from simple_cipher import Caesar, Cipher


class CipherTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion exercises/word-count/word_count_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import unittest

from wordcount import word_count
from word_count import word_count


# to be backwards compatible with the old Python 2.X
Expand Down

0 comments on commit 9ae3ba6

Please sign in to comment.