new_contents: import unittest
  
  import ppb_vector
  
  
  class TestTruncate(unittest.TestCase):
  
      def test_truncate(self):
          test_vector = ppb_vector.Vector2(700, 500)
          test_vector_truncated = test_vector.truncate(5)
          print(test_vector_truncated)
          self.assertEqual(
              test_vector_truncated,
              ppb_vector.Vector2(4.068667356033675, 2.906190968595482)
          )
  
subject: Create test_vector2_truncate.py