MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_jsonl

Method test_jsonl

functional/test/test_streams.py:120–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 self.seq.csv(1)
119
120 def test_jsonl(self):
121 result_0 = self.seq.jsonl("functional/test/data/test.jsonl").to_list()
122 expect_0 = [[1, 2, 3], {"a": 1, "b": 2, "c": 3}]
123 self.assertEqual(expect_0, result_0)
124 result_1 = self.seq.jsonl(["[1, 2, 3]", "[4, 5, 6]"])
125 expect_1 = [[1, 2, 3], [4, 5, 6]]
126 self.assertEqual(expect_1, result_1)
127
128 def test_gzip_jsonl(self):
129 result_0 = self.seq.jsonl("functional/test/data/test.jsonl.gz").to_list()

Callers

nothing calls this directly

Calls 2

to_listMethod · 0.80
jsonlMethod · 0.80

Tested by

no test coverage detected