From 6f3a7b9d64a4fab7c5096cb13bde6cccbda5a3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ostrzo=C5=82ek?= Date: Thu, 9 Jan 2025 10:34:57 +0100 Subject: [PATCH] zig: add test to language chooser --- test/testLanguages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testLanguages.py b/test/testLanguages.py index 66a0861..1e58256 100644 --- a/test/testLanguages.py +++ b/test/testLanguages.py @@ -1,6 +1,7 @@ import unittest from lizard_languages import get_reader_for, CLikeReader, JavaReader, ObjCReader, JavaScriptReader, ScalaReader,\ GDScriptReader, SolidityReader, ErlangReader +from lizard_languages.zig import ZigReader class TestLanguageChooser(unittest.TestCase): @@ -36,3 +37,6 @@ def test_Solidity(self): def test_erlang(self): self.assertEqual(ErlangReader, get_reader_for("a.erl")) + + def test_zig(self): + self.assertEqual(ZigReader, get_reader_for("a.zig"))