Commit 1c11ea07 authored by Adam P. Goucher's avatar Adam P. Goucher

Unit test for new behaviour

parent 69aff9d4
Pipeline #55041681 passed with stages
in 7 minutes and 50 seconds
import os
import lifelib
import unittest
from lifelib.autocompile import sanirule
class TestSanirule(unittest.TestCase):
def test_goltree(self):
filename = os.path.join(lifelib.lifelib_dir, 'rules', 'source', 'Life.tree')
srule = sanirule(filename)
self.assertEqual(srule, 'b3s23')
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment