cPyparsing_test.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:cpyparsing 作者: evhub 项目源码 文件源码
def runTest(self):
        from examples.jsonParser import jsonObject
        from test.jsonParserTests import test1,test2,test3,test4,test5
        from test.jsonParserTests import test1,test2,test3,test4,test5

        expected = [
            [],
            [],
            [],
            [],
            [],
            ]

        import pprint
        for t,exp in zip((test1,test2,test3,test4,test5),expected):
            result = jsonObject.parseString(t)
##            print result.dump()
            result.pprint()
            print()
##            if result.asList() != exp:
##                print "Expected %s, parsed results as %s" % (exp, result.asList())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号