def test_get_words_java():
 expected_words = ['Compilation', 'Execution', 'Hello', 'HelloWorld', 'Prints', 'String', 'System', 'World', 'args', 'class', 'java', 'javac', 'main', 'out', 'println', 'public', 'static', 'terminal', 'the', 'to', 'void', 'window']
 assert (sorted(expected_words) == sorted(get_words_by_filename('example.java')))
 assert (sorted(expected_words) == sorted(get_words_by_content('example.java')))

def test_get_words_java ( ) : expected_words = [ 'Compilation' , 'Execution' , 'Hello' , 'HelloWorld' , 'Prints' , 'String' , 'System' , 'World' , 'args' , 'class' , 'java' , 'javac' , 'main' , 'out' , 'println' , 'public' , 'static' , 'terminal' , 'the' , 'to' , 'void' , 'window' ] assert ( sorted ( expected_words ) == sorted ( get_words_by_filename ( 'example.java' ) ) ) assert ( sorted ( expected_words ) == sorted ( get_words_by_content ( 'example.java' ) ) )
test for get word from java file syntax .