#NEWLINE# def test_script_basic( self ) : #NEWLINE# #INDENT# res = self . parse ( ( 'module' , '' , [ ( 'test.script' , 'let x = 10; x = x + 1; x' ) ] ) ) #NEWLINE# self . assertTrue ( res . isModule ( ) ) #NEWLINE# script = res . getMembers ( ) [ 'test' ] #NEWLINE# self . assertTrue ( script . asMember . parseMetadata . isWasScript ( ) ) #NEWLINE# self . assertTrue ( ( str ( script . asMember . parseMetadata . asWasScript . scriptModule ) == 'test.module' ) ) #NEWLINE# scriptModule = res [ 'test.module' ] #NEWLINE# self . assertTrue ( scriptModule . asModule . parseMetadata . isScriptModule ( ) ) #NEWLINE# symbols = scriptModule . asModule . parseMetadata . asScriptModule . symbols #NEWLINE# self . assertTrue ( ( len ( symbols ) == 1 ) ) #NEWLINE# memberForResult = scriptModule [ symbols [ 0 ] ] #NEWLINE# self . assertTrue ( memberForResult . isMember ( ) ) #NEWLINE# self . assertEqual ( memberForResult . asMember . name , symbols [ 0 ] )