blob: 56f83d377dd1d7598ecb896caac7c7da87c83dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import cpp_util
import unittest
class CppUtilTest(unittest.TestCase):
def testCppName(self):
self.assertEquals('Permissions', cpp_util.CppName('permissions'))
self.assertEquals('UpdateAllTheThings',
cpp_util.CppName('updateAllTheThings'))
self.assertEquals('Aa_Bb_Cc', cpp_util.CppName('aa.bb.cc'))
if __name__ == '__main__':
unittest.main()
|