Skip to content

Commit

Permalink
started class TestSymbolConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
kangwonlee committed Dec 26, 2017
1 parent a6bccdc commit 06a9be3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test_symbol_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,19 @@ def test_replace_symbol(self):
'source': "R_A_N, M_A_Nm, R_B_N = sy.symbols('R_{A}[N], M_{A}[Nm], R_{B}[N]', real=True)"}])]

self.assertSequenceEqual(expected, result)


class TestSymbolConverter(unittest.TestCase):
def setUp(self):
self.input_file_name = 'sample.ipynb'

# class under test
self.cp = sc.SymbolConverter()

self.file_processor = fu.FileProcessor(self.input_file_name, self.cp)

def test_wrap_symbol_name(self):
result = self.cp.wrap_symbol_name('L_AB_m')
expected = 'L_{AB}_{m}'

self.assertEqual(expected, result)

0 comments on commit 06a9be3

Please sign in to comment.