Add more unit tests

Little naming cleanup (first round)
This commit is contained in:
StableLlama
2025-05-09 23:38:54 +02:00
parent 94e9a5c673
commit e452a2e645
10 changed files with 411 additions and 12 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ class CastToInt:
def convert_to_int(self, input: Any) -> tuple[int]:
try:
return (int(input),)
except ValueError:
except (ValueError, TypeError):
raise ValueError(f"Cannot convert {input} to an INT.")
@@ -79,7 +79,7 @@ class CastToFloat:
def convert_to_float(self, input: Any) -> tuple[float]:
try:
return (float(input),)
except ValueError:
except (ValueError, TypeError):
raise ValueError(f"Cannot convert {input} to a FLOAT.")