Skip to content

Commit 914236e

Browse files
committed
add test
1 parent 028bcdf commit 914236e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎wolframclient/tests/serializers/pandas.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,15 @@ def test_serialization_works(self):
5555
)
5656
export(data, target_format="wl")
5757
export(data, target_format="wxf")
58+
59+
def test_nat_encodes_as_indeterminate(self):
60+
import pandas as pd
61+
62+
result = export(pd.NaT, target_format="wl")
63+
self.assertEqual(result, b"Indeterminate")
64+
65+
def test_nat_wxf(self):
66+
import pandas as pd
67+
68+
result = export(pd.NaT, target_format="wxf")
69+
self.assertIn(b"Indeterminate", result)

0 commit comments

Comments
 (0)