tests package

Submodules

tests.test_cse_machine module

class tests.test_cse_machine.TestMachineOutput(methodName='runTest')

Bases: TestCase

run_rpal(filename)

Helper function to run the RPAL parser with the -st flag

test_cse_machine()

Test the AST generation against expected output files

tests.test_lexer module

class tests.test_lexer.TestLexer(methodName='runTest')

Bases: TestCase

test_integer_token()
test_lex()
test_lex_comma()
test_lex_comment()
test_lex_comment_2()
test_lex_empty()
test_lex_invalid_token()
test_lex_one_token()
test_lex_paren()
test_lex_semicolon()
test_lex_simple()
test_lex_spaces()
test_lex_two_tokens()
test_lookAhead_after_nextToken()
test_lookAhead_comment()
test_lookAhead_comment_2()
test_lookAhead_default()
test_lookAhead_empty()
test_lookAhead_multiple_calls()
test_lookAhead_simple()
test_nextToken()
test_operator_token()
test_string_token()
test_strings()

tests.test_parser module

class tests.test_parser.TestParser(methodName='runTest')

Bases: TestCase

test_ast_str()

tests.test_rpal_parser module

class tests.test_rpal_parser.TestRPALParser(methodName='runTest')

Bases: TestCase

test()
test_D()
test_E()
test_E_1()
test_E_empty()
test_Rn()
test_Rn_empty()
test_Tc()
test_Vb()
test_Vl()

tests.test_st module

class tests.test_st.TestRPALSTGeneration(methodName='runTest')

Bases: TestCase

get_rpal_st(filename)

Helper function to run the RPAL parser with the -st flag

test_st_generation()

Test the AST generation against expected output files

Module contents