Skip to content

Commit

Permalink
zig: add test to language chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
jostrzol committed Jan 9, 2025
1 parent b69b502 commit 6f3a7b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testLanguages.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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"))

0 comments on commit 6f3a7b9

Please sign in to comment.