build: removed duplicate codewars test cases

This commit is contained in:
Sandro Zimmermann 2026-03-26 11:20:24 +01:00
parent 17297aaf7d
commit f0af4d7dd2
9 changed files with 0 additions and 59 deletions

View File

@ -1,8 +0,0 @@
from src.codewars.kata_ceasar_cipher_helper import CaesarCipher
def test_cipher_helper():
c = CaesarCipher(5)
assert c.encode("Codewars") == "HTIJBFWX"
assert c.decode("HTIJBFWX") == "CODEWARS"

View File

@ -1,7 +0,0 @@
from src.codewars.kata_force_of_gravity import solution
def test_a():
assert solution([1000, 1000, 100], ["g", "kg", "m"]) == 6.67e-12
assert solution([1000, 1000, 100], ["kg", "kg", "m"]) == 6.6699999999999995e-09
assert solution([1000, 1000, 100], ["kg", "kg", "cm"]) == 0.0000667

View File

@ -1,15 +0,0 @@
from src.codewars.kata_object_oriented_piracy import Ship
def test_piracy():
empty_ship = Ship(0, 0)
assert not empty_ship.is_worth_it()
boat = Ship(15, 20)
assert not boat.is_worth_it()
worthy_ship = Ship(100, 20)
assert worthy_ship.is_worth_it()
big_boat = Ship(35, 20)
assert not big_boat.is_worth_it()

View File

@ -1,13 +0,0 @@
from src.codewars.kata_the_lamp import Lamp
def test_lamp():
my_lamp = Lamp("Blue")
assert my_lamp.color == "Blue"
assert not my_lamp.on
assert my_lamp.state() == "The lamp is off."
my_lamp.toggle_switch()
assert my_lamp.state() == "The lamp is on."
my_lamp.toggle_switch()
assert my_lamp.state() == "The lamp is off."

View File

@ -1,16 +0,0 @@
from src.codewars.kata_vigenere_cipher_helper import VigenereCipher
def test_cipher_helper():
abc = "abcdefghijklmnopqrstuvwxyz"
key = "password"
c = VigenereCipher(key, abc)
assert c.encode("codewars") == "rovwsoiv"
assert c.decode("rovwsoiv") == "codewars"
assert c.encode("waffles") == "laxxhsj"
assert c.decode("laxxhsj") == "waffles"
assert c.encode("CODEWARS") == "CODEWARS"
assert c.decode("CODEWARS") == "CODEWARS"