Skip to content

Commit 970c76c

Browse files
longer integer to trigger the loss of precision
Signed-off-by: Jerry Guo <[email protected]>
1 parent 178204b commit 970c76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/data_stores/test_vision_excel_file_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def mock_parse(*args, **kwargs):
3737
return preview_df
3838
else:
3939
actual_data = {
40-
"Mock.Name": [123456789, 987.654],
40+
"Mock.Name": [123456789000000, 987.654],
4141
"Other.Column": ["value1", "value2"],
4242
"ID": [1, 2],
4343
"ratio": [0.1, 0.2],
@@ -66,7 +66,7 @@ def mock_parse(*args, **kwargs):
6666
assert "Mock.Name" in second_call[1]["dtype"]
6767
assert second_call[1]["dtype"]["Mock.Name"] is str
6868

69-
assert result_df["Mock.Name"][0] == "123456789" # Long int as string
69+
assert result_df["Mock.Name"][0] == "123456789000000" # Long int as string
7070
assert result_df["Mock.Name"][1] == "987.654" # Float as string
7171
assert result_df["Other.Column"][0] == "value1"
7272
assert result_df["Other.Column"][1] == "value2"

0 commit comments

Comments
 (0)