def test_compile_special_chars(self): test_ope = { u'nxt':u'a', u'prv':u'b', u'inc':u'c', u'dec':u'd', u'put':u'e', u'get':u'f', u'opn':u'[*]', u'cls':u'[*', } bf = BrainFxxk(test_ope) src = bf._compile('[*]aaaacc[*aa') tools.eq_(u'[>>>>++]>>', src)
def test_compile_multiple(self): test_ope = { u'nxt':u'a', u'prv':u'b', u'inc':u'c', u'dec':u'd', u'put':u'e', u'get':u'f', u'opn':u'あい', u'cls':u'h', } bf = BrainFxxk(test_ope) src = bf._compile('あいaaaacchaa') tools.eq_(u'[>>>>++]>>', src)