CoolFace
Apppublic

CintraAI/code-chunker

sourceHugging Facemitupdated 1y agoView on Hugging Face
5likes
test_typescript.py16 linesDownload Raw Back to tests
1import unittest2from test_base import BaseChunkerTest3from Chunker import CodeChunker4 5class TestCodeChunkerTypeScript(BaseChunkerTest):6    def setUp(self):7        super().setUp()8        self.code_chunker = CodeChunker(file_extension='ts')9 10    def test_chunk_typescript_code(self):11        ts_code = self.mock_codebase['example.ts']12        chunks, _ = self.run_chunker_test(ts_code)13        self.assertGreater(len(chunks), 1)  # Ensure the code is actually chunked14 15if __name__ == '__main__':16    unittest.main()