mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
start writing the kpat emitter.
This commit is contained in:
parent
c12be2eaed
commit
44413c9f0b
3 changed files with 31 additions and 0 deletions
17
pysollib/kpat_load_save.py
Normal file
17
pysollib/kpat_load_save.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:fenc=utf-8
|
||||
#
|
||||
# Copyright © 2019 Shlomi Fish <shlomif@cpan.org>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
|
||||
"""
|
||||
|
||||
"""
|
||||
|
||||
|
||||
class KpatEmitter:
|
||||
"""docstring for KpatEmitter"""
|
||||
def __init__(self, f):
|
||||
self.f = f
|
|
@ -38,6 +38,7 @@ for ver in PY_VERS:
|
|||
'pysol_tests.acard_unit',
|
||||
'pysol_tests.hint',
|
||||
'pysol_tests.import_file1',
|
||||
'pysol_tests.kpat_load_save',
|
||||
'pysol_tests.latin1_conv_unit',
|
||||
'pysol_tests.ms_deals1',
|
||||
'pysol_tests.scorpion_canMove',
|
||||
|
|
13
tests/lib/pysol_tests/kpat_load_save.py
Normal file
13
tests/lib/pysol_tests/kpat_load_save.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Written by Shlomi Fish, under the MIT Expat License.
|
||||
import unittest
|
||||
|
||||
from pysollib.kpat_load_save import KpatEmitter
|
||||
|
||||
from six.moves import cStringIO
|
||||
|
||||
|
||||
class MyTests(unittest.TestCase):
|
||||
def test_emitter(self):
|
||||
f = cStringIO()
|
||||
e = KpatEmitter(f)
|
||||
self.assertTrue(e)
|
Loading…
Add table
Reference in a new issue