22 lines
459 B
Python
22 lines
459 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
|
|
from pymath.calculus.operator.add import Add
|
|
|
|
|
|
def test_add_render_tex():
|
|
assert Add().__tex__('1', '2') == '1 + 2'
|
|
assert Add().__tex__('1', '-2') == '1 - 2'
|
|
|
|
|
|
def test_add_render_txt():
|
|
assert Add().__txt__('1', '2') == '1 + 2'
|
|
assert Add().__txt__('1', '-2') == '1 - 2'
|
|
|
|
|
|
# -----------------------------
|
|
# Reglages pour 'vim'
|
|
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
|
# cursor: 16 del
|