fix tests

This commit is contained in:
raf 2023-10-07 23:55:08 +03:00
parent 4252b63086
commit 1a158d8b6d
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -115,6 +115,6 @@ class ProjectileSimulation:
plt.show() plt.show()
def print_range(self): def print_range(self):
"""Prints the range of the projectile.""" """Returns the range of the projectile as a string."""
range_projectile = self.x[-1] range_projectile = self.x[-1]
print(f"Range of projectile: {range_projectile:.2f} m") return f"Range of projectile: {range_projectile:.2f} m"