1
0
Fork 0
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:
Shlomi Fish 2019-04-08 12:38:12 +03:00
parent c12be2eaed
commit 44413c9f0b
3 changed files with 31 additions and 0 deletions

View 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

View file

@ -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',

View 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)