def test_get_words_cplusplus():
 expected_words = ['Consider', 'Create', 'Implement', 'Obj', 'ObjContainer', 'Postfix', 'Prefix', 'Return', 'SmartPointer', 'Static', 'Zero', 'a', 'above', 'access', 'actual', 'add', 'an', 'back', 'bool', 'call', 'class', 'const', 'container', 'cout', 'definitions', 'do', 'end', 'endl', 'f', 'false', 'for', 'friend', 'g', 'i', 'if', 'implement', 'include', 'index', 'indicates', 'int', 'iostream', 'iterator', 'j', 'list', 'main', 'member', 'method', 'namespace', 'o', 'obj', 'objc', 'oc', 'of', 'operator', 'overload', 'pointer', 'public', 'push', 'return', 's', 'size', 'smart', 'sp', 'standard', 'static', 'std', 'sz', 'the', 'to', 'true', 'using', 'value', 'vector', 'version', 'void', 'while']
 assert (sorted(expected_words) == sorted(get_words_by_filename('example.cpp')))
 assert (sorted(expected_words) == sorted(get_words_by_content('example.cpp')))

def test_get_words_cplusplus ( ) : expected_words = [ 'Consider' , 'Create' , 'Implement' , 'Obj' , 'ObjContainer' , 'Postfix' , 'Prefix' , 'Return' , 'SmartPointer' , 'Static' , 'Zero' , 'a' , 'above' , 'access' , 'actual' , 'add' , 'an' , 'back' , 'bool' , 'call' , 'class' , 'const' , 'container' , 'cout' , 'definitions' , 'do' , 'end' , 'endl' , 'f' , 'false' , 'for' , 'friend' , 'g' , 'i' , 'if' , 'implement' , 'include' , 'index' , 'indicates' , 'int' , 'iostream' , 'iterator' , 'j' , 'list' , 'main' , 'member' , 'method' , 'namespace' , 'o' , 'obj' , 'objc' , 'oc' , 'of' , 'operator' , 'overload' , 'pointer' , 'public' , 'push' , 'return' , 's' , 'size' , 'smart' , 'sp' , 'standard' , 'static' , 'std' , 'sz' , 'the' , 'to' , 'true' , 'using' , 'value' , 'vector' , 'version' , 'void' , 'while' ] assert ( sorted ( expected_words ) == sorted ( get_words_by_filename ( 'example.cpp' ) ) ) assert ( sorted ( expected_words ) == sorted ( get_words_by_content ( 'example.cpp' ) ) )
test for get word from c++ file syntax .