Mercurial > hg > orthanc-stone
diff Resources/CodeGeneration/stonegentool_test.py @ 472:3db3289e1c25 bgo-commands-codegen
Ongoing codegen work
author | bgo-osimis |
---|---|
date | Wed, 13 Feb 2019 06:46:36 +0100 |
parents | 125c19b294e3 |
children | 628941d63b8c |
line wrap: on
line diff
--- a/Resources/CodeGeneration/stonegentool_test.py Wed Feb 13 06:24:35 2019 +0100 +++ b/Resources/CodeGeneration/stonegentool_test.py Wed Feb 13 06:46:36 2019 +0100 @@ -1,4 +1,4 @@ -from stonegentool import * +from stonegentool import EatToken import unittest class TestStonegentool(unittest.TestCase): @@ -26,7 +26,7 @@ self.assertEqual(a,r"vector<map<int64,string>>") self.assertEqual(b,r"vector<map<int32,string>>") - def test_EatToken_complexTemplate(self): + def test_EatToken_complexTemplates(self): c = r"vector<map<vector<string>,map<int32,string>>>,map<int32,string>,map<map<int32,string>,string>" a,b = EatToken(c) self.assertEqual(a,r"vector<map<vector<string>,map<int32,string>>>") @@ -35,7 +35,7 @@ self.assertEqual(a,r"map<int32,string>") self.assertEqual(b,r"map<map<int32,string>,string>") -# def prout(self): +# def test(self): # s = 'hello world' # self.assertEqual(s.split(), ['hello', 'world']) # # check that s.split fails when the separator is not a string