def test_long_double_numeric_values_edge_case(self):
        """We test some edge cases here for clarity"""
        test_case = [
            ({"_id": "1", "float_field_1": 1e-50},
             {"_id": "1", "float_field_1": 0},
             "small positive float will be rounded to 0"),
            ({"_id": "2", "float_field_1": -1e-50},
             {"_id": "2", "float_field_1": 0},
             "small negative float will be rounded to 0"),
        ]

        for doc, expected_doc, msg in test_case:
            with self.subTest(msg):
                res = self.client.index(self.text_index_name).add_documents(documents=[doc])
                self.assertFalse(res['errors'])
                document_id = doc["_id"]
                returned_doc = self.client.index(self.text_index_name).get_document(
                    document_id, False
                )
                self.assertEqual(expected_doc, returned_doc)
We test some edge cases here for clarity
tests/api_tests/v1/tests/api_tests/structured_index/test_add_documents.py