<commit_before># -*- coding: utf-8 -*-

import unittest

from pynes.compiler import lexical, syntax, semantic

class InyTest(unittest.TestCase):

    def test_iny_sngl(self):
        tokens = lexical('INY')
        self.assertEquals(1 , len(tokens))
        self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
        ast = syntax(tokens)
        self.assertEquals(1 , len(ast))
        self.assertEquals('S_IMPLIED', ast[0]['type'])
        code = semantic(ast)
        self.assertEquals(code, [0xc8])<commit_msg>PEP8 fixes on tests/iny_test.py<commit_after># -*- coding: utf-8 -*-

import unittest

from pynes.compiler import lexical, syntax, semantic


class InyTest(unittest.TestCase):

    def test_iny_sngl(self):
        tokens = lexical('INY')
        self.assertEquals(1, len(tokens))
        self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
        ast = syntax(tokens)
        self.assertEquals(1, len(ast))
        self.assertEquals('S_IMPLIED', ast[0]['type'])
        code = semantic(ast)
        self.assertEquals(code, [0xc8])

{'fraction_non_alphanumeric': 0.14476190476190476, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 3.2379032258064515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4191714', 'n_tokens_mistral': 343, 'n_tokens_neox': 328, 'n_words': 64}