How to use parse_test method in avocado

Best Python code snippet using avocado_python

parser_2_test.py

Source:parser_2_test.py Github

copy

Full Screen

...16class ParseTest:17 chunk: Chunk18 expected_state: str19 data: Dict = field(default_factory=dict)20def parse_test(chunk: Chunk, expected_state: str, data: Dict, parser: ChunkParser):21 try:22 parse_result: ParseResult = parser().parse(chunk, None, None)23 except FailedParseException as exc:24 print(exc.__context__.explain()) # pylint: disable=no-member25 assert False26 print("Data:\n", parse_result.data)27 assert parse_result.new_state == expected_state28 assert parse_result.data == data29def test_footer(caplog):30 caplog.set_level(logging.INFO)31 value = Enumerated(32 1,33 "COCKPIT ISSUED 08APR2022 EFF 02MAY2022 PHL 787 INTL PAGE 1990",34 )35 data = {36 "issued": "08APR2022",37 "effective": "02MAY2022",38 "base": "PHL",39 "equipment": "787",40 "division": "INTL",41 "internal_page": "1990",42 }43 chunk = Chunk(value)44 parse_test(chunk, "footer", data, pbs_parser.FooterLine)45def test_first_header(caplog):46 caplog.set_level(logging.INFO)47 value = Enumerated(48 1,49 " DAY −−DEPARTURE−− −−−ARRIVAL−−− GRND/ REST/",50 )51 data = {}52 chunk = Chunk(value)53 parse_test(chunk, "first_header", data, pbs_parser.FirstHeaderLine)54def test_second_header(caplog):55 caplog.set_level(logging.INFO)56 value = Enumerated(57 1,58 "DP D/A EQ FLT# STA DLCL/DHBT ML STA ALCL/AHBT BLOCK SYNTH TPAY DUTY TAFB FDP CALENDAR 05/02−06/01",59 )60 data = {61 "calendar_from": {"month": "05", "day": "02"},62 "calendar_to": {"month": "06", "day": "01"},63 }64 chunk = Chunk(value)65 parse_test(chunk, "second_header", data, pbs_parser.SecondHeaderLine)66def test_dash_line(caplog):67 caplog.set_level(logging.INFO)68 value = Enumerated(69 1,70 "−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−",71 )72 data = {}73 chunk = Chunk(value)74 parse_test(chunk, "dash_line", data, pbs_parser.DashLine)75def test_base_equipment_line(caplog):76 caplog.set_level(logging.INFO)77 value = Enumerated(78 1,79 "PHL 787",80 )81 data = {"base": "PHL", "equipment": "787"}82 chunk = Chunk(value)83 parse_test(chunk, "base_equipment", data, pbs_parser.BaseEquipmentLine)84def test_sequence_header_line(caplog):85 caplog.set_level(logging.INFO)86 value = Enumerated(87 1,88 "SEQ 1313 28 OPS POSN CA FO GREEK OPERATION MO TU WE TH FR SA SU ",89 )90 data = {91 "sequence": "1313",92 "ops_count": "28",93 "positions": ["CA", "FO"],94 "operations": ["GREEK"],95 }96 chunk = Chunk(value)97 parse_test(chunk, "sequence_header", data, pbs_parser.SequenceHeaderLine)98 value = Enumerated(99 1,100 "SEQ 30533 1 OPS POSN CA FO Replaces prior month",101 )102 data = {103 "sequence": "30533",104 "ops_count": "1",105 "positions": ["CA", "FO"],106 "operations": [],107 }108 chunk = Chunk(value)109 parse_test(chunk, "sequence_header", data, pbs_parser.SequenceHeaderLine)110def test_report_line(caplog):111 caplog.set_level(logging.INFO)112 value = Enumerated(113 1,114 " RPT 0800/0800 −− −− −− −− −− 7 −−",115 )116 data = {117 "report_local": "0800",118 "report_home": "0800",119 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "7", "−−"],120 }121 chunk = Chunk(value)122 parse_test(chunk, "report", data, pbs_parser.ReportLine)123 value = Enumerated(124 1,125 " RPT 1545/1545 −− −− −− −− −− −− −−",126 )127 data = {128 "report_local": "1545",129 "report_home": "1545",130 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "−−", "−−"],131 }132 chunk = Chunk(value)133 parse_test(chunk, "report", data, pbs_parser.ReportLine)134 value = Enumerated(135 1,136 " RPT 0652/0652",137 )138 data = {139 "report_local": "0652",140 "report_home": "0652",141 "calendar_entries": [],142 }143 chunk = Chunk(value)144 parse_test(chunk, "report", data, pbs_parser.ReportLine)145 value = Enumerated(146 1,147 " RPT 0730/0730 sequence 5144/30APR",148 )149 data = {150 "report_local": "0730",151 "report_home": "0730",152 "calendar_entries": [],153 "sequence_number": "5144",154 "date": ["30", "APR"],155 }156 chunk = Chunk(value)157 parse_test(chunk, "report", data, pbs_parser.ReportLine)158def test_flight_line(caplog):159 caplog.set_level(logging.INFO)160 value = Enumerated(161 1,162 "2 2/2 26 2112 DFW 0600/0700 B LAX 0725/1025 3.25 2.35X",163 )164 data = {165 "dutyperiod": "2",166 "day_of_sequence": "2/2",167 "equipment_code": "26",168 "flight_number": "2112",169 "departure_city": "DFW",170 "departure_local": "0600",171 "departure_home": "0700",172 "crew_meal": "B",173 "arrival_city": "LAX",174 "arrival_local": "0725",175 "arrival_home": "1025",176 "block": "3.25",177 "ground": "2.35",178 "equipment_change": "X",179 "calendar_entries": [],180 }181 chunk = Chunk(value)182 parse_test(chunk, "flight", data, pbs_parser.FlightLine)183 value = Enumerated(184 1,185 "1 1/1 64 508 MBJ 1306/1406 DFW 1700/1800 3.54 −− −− −− −− −− −− −−",186 )187 data = {188 "dutyperiod": "1",189 "day_of_sequence": "1/1",190 "equipment_code": "64",191 "flight_number": "508",192 "departure_city": "MBJ",193 "departure_local": "1306",194 "departure_home": "1406",195 "crew_meal": "",196 "arrival_city": "DFW",197 "arrival_local": "1700",198 "arrival_home": "1800",199 "block": "3.54",200 "ground": "0.00",201 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "−−", "−−"],202 }203 chunk = Chunk(value)204 parse_test(chunk, "flight", data, pbs_parser.FlightLine)205def test_flight_deadhead_line(caplog):206 caplog.set_level(logging.INFO)207 value = Enumerated(208 1,209 "1 1/1 45 435D MIA 1010/1010 CLT 1225/1225 AA 2.15 −− −− −− −− −− −− −−\n",210 )211 data = {212 "dutyperiod": "1",213 "day_of_sequence": "1/1",214 "equipment_code": "45",215 "flight_number": "435",216 "deadhead": "D",217 "departure_city": "MIA",218 "departure_local": "1010",219 "departure_home": "1010",220 "crew_meal": "",221 "arrival_city": "CLT",222 "arrival_local": "1225",223 "arrival_home": "1225",224 "deadhead_block": "AA",225 "ground": "0.00",226 "synth": "2.15",227 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "−−", "−−"],228 }229 chunk = Chunk(value)230 parse_test(chunk, "flight_deadhead", data, pbs_parser.FlightDeadheadLine)231 value = Enumerated(232 1,233 "1 1/1 45 2250D BOS 1429/1429 CLT 1657/1657 AA 2.28 1.42X −− −− −− −− −− −− −−\n",234 )235 data = {236 "dutyperiod": "1",237 "day_of_sequence": "1/1",238 "equipment_code": "45",239 "flight_number": "2250",240 "deadhead": "D",241 "departure_city": "BOS",242 "departure_local": "1429",243 "departure_home": "1429",244 "crew_meal": "",245 "arrival_city": "CLT",246 "arrival_local": "1657",247 "arrival_home": "1657",248 "deadhead_block": "AA",249 "synth": "2.28",250 "ground": "1.42",251 "equipment_change": "X",252 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "−−", "−−"],253 }254 chunk = Chunk(value)255 parse_test(chunk, "flight_deadhead", data, pbs_parser.FlightDeadheadLine)256def test_release_line(caplog):257 caplog.set_level(logging.INFO)258 value = Enumerated(259 1,260 " RLS 0054/0054 6.05 0.00 6.05 10.18 9.48 −− −− −−",261 )262 data = {263 "release_local": "0054",264 "release_home": "0054",265 "block": "6.05",266 "synth": "0.00",267 "total_pay": "6.05",268 "duty": "10.18",269 "flight_duty": "9.48",270 "calendar_entries": ["−−", "−−", "−−"],271 }272 chunk = Chunk(value)273 parse_test(chunk, "release", data, pbs_parser.ReleaseLine)274 value = Enumerated(275 1,276 " RLS 2203/2203 3.00 0.49 3.49 7.38 7.08",277 )278 data = {279 "release_local": "2203",280 "release_home": "2203",281 "block": "3.00",282 "synth": "0.49",283 "total_pay": "3.49",284 "duty": "7.38",285 "flight_duty": "7.08",286 "calendar_entries": [],287 }288 chunk = Chunk(value)289 parse_test(chunk, "release", data, pbs_parser.ReleaseLine)290 value = Enumerated(291 1,292 " RLS 0825/0325 7.15 0.00 7.15 8.45 8.15 16 −− 18 −− −− −− −−",293 )294 data = {295 "release_local": "0825",296 "release_home": "0325",297 "block": "7.15",298 "synth": "0.00",299 "total_pay": "7.15",300 "duty": "8.45",301 "flight_duty": "8.15",302 "calendar_entries": ["16", "−−", "18", "−−", "−−", "−−", "−−"],303 }304 chunk = Chunk(value)305 parse_test(chunk, "release", data, pbs_parser.ReleaseLine)306def test_hotel_line(caplog):307 caplog.set_level(logging.INFO)308 value = Enumerated(309 1,310 " LHR HI HIGH STREET 442073684023 23.50 −− −− 25 −− −− −− −−",311 )312 data = {313 "layover_city": "LHR",314 "hotel": "HI HIGH STREET",315 "hotel_phone": "442073684023",316 "rest": "23.50",317 "calendar_entries": ["−−", "−−", "25", "−−", "−−", "−−", "−−"],318 }319 chunk = Chunk(value)320 parse_test(chunk, "hotel", data, pbs_parser.HotelLine)321 value = Enumerated(322 1,323 " ATH HOTEL INFO IN CCI/CREW PORTAL 25.10 −− −− −− −− −− −− −−",324 )325 data = {326 "layover_city": "ATH",327 "hotel": "HOTEL INFO IN CCI/CREW PORTAL",328 "hotel_phone": [],329 "rest": "25.10",330 "calendar_entries": ["−−", "−−", "−−", "−−", "−−", "−−", "−−"],331 }332 chunk = Chunk(value)333 parse_test(chunk, "hotel", data, pbs_parser.HotelLine)334 value = Enumerated(335 1,336 " BDL SHERATON SPRINGFIELD MONARCH PLACE HOTE 14137811010 21.02",337 )338 data = {339 "layover_city": "BDL",340 "hotel": "SHERATON SPRINGFIELD MONARCH PLACE HOTE",341 "hotel_phone": "14137811010",342 "rest": "21.02",343 "calendar_entries": [],344 }345 chunk = Chunk(value)346 parse_test(chunk, "hotel", data, pbs_parser.HotelLine)347 value = Enumerated(348 1,349 " STL MARRIOTT GRAND ST. LOUIS 13146219600 30.39\n",350 )351 data = {352 "layover_city": "STL",353 "hotel": "MARRIOTT GRAND ST. LOUIS",354 "hotel_phone": "13146219600",355 "rest": "30.39",356 "calendar_entries": [],357 }358 chunk = Chunk(value)359 parse_test(chunk, "hotel", data, pbs_parser.HotelLine)360def test_unicode():361 pass362def test_additional_hotel_line(caplog):363 caplog.set_level(logging.INFO)364 value = Enumerated(365 1,366 " +LAS THE WESTIN LAS VEGAS HOTEL 17028365900",367 )368 data = {369 "layover_city": "LAS",370 "hotel": "THE WESTIN LAS VEGAS HOTEL",371 "hotel_phone": "17028365900",372 "calendar_entries": [],373 }374 chunk = Chunk(value)375 parse_test(chunk, "additional_hotel", data, pbs_parser.AdditionalHotelLine)376def test_transportation_line(caplog):377 caplog.set_level(logging.INFO)378 value = Enumerated(379 1,380 " COMET CAR HIRE (CCH) LTD 442088979984 −− −− −−",381 )382 data = {383 "transportation": "COMET CAR HIRE (CCH) LTD",384 "transportation_phone": ["442088979984"],385 "calendar_entries": ["−−", "−−", "−−"],386 }387 chunk = Chunk(value)388 parse_test(chunk, "transportation", data, pbs_parser.TransportationLine)389 value = Enumerated(390 1,391 " TRANS INFO IN CCI/CREW PORTAL −− −− 1",392 )393 data = {394 "transportation": "TRANS INFO IN CCI/CREW PORTAL",395 "transportation_phone": [],396 "calendar_entries": ["−−", "−−", "1"],397 }398 chunk = Chunk(value)399 parse_test(chunk, "transportation", data, pbs_parser.TransportationLine)400 value = Enumerated(401 1,402 " SHUTTLE",403 )404 data = {405 "transportation": "SHUTTLE",406 "transportation_phone": [],407 "calendar_entries": [],408 }409 chunk = Chunk(value)410 parse_test(chunk, "transportation", data, pbs_parser.TransportationLine)411 value = Enumerated(412 1,413 " J & G’S CITYWIDE EXPRESS 5127868131",414 )415 data = {416 "transportation": "J & G’S CITYWIDE EXPRESS",417 "transportation_phone": ["5127868131"],418 "calendar_entries": [],419 }420 chunk = Chunk(value)421 parse_test(chunk, "transportation", data, pbs_parser.TransportationLine)422def test_total_line(caplog):423 caplog.set_level(logging.INFO)424 value = Enumerated(425 1,426 "TTL 15.47 0.37 16.24 57.26",427 )428 data = {429 "block": "15.47",430 "synth": "0.37",431 "total_pay": "16.24",432 "tafb": "57.26",433 "calendar_entries": [],434 }435 chunk = Chunk(value)436 parse_test(chunk, "total", data, pbs_parser.TotalLine)437 value = Enumerated(438 1,439 "TTL 4.58 0.17 5.15 7.18 −− −− −−",440 )441 data = {442 "block": "4.58",443 "synth": "0.17",444 "total_pay": "5.15",445 "tafb": "7.18",446 "calendar_entries": ["−−", "−−", "−−"],447 }448 chunk = Chunk(value)449 parse_test(chunk, "total", data, pbs_parser.TotalLine)450 value = Enumerated(451 1,452 "TTL 4.54 0.21 5.15 7.16 30 −− 1",453 )454 data = {455 "block": "4.54",456 "synth": "0.21",457 "total_pay": "5.15",458 "tafb": "7.16",459 "calendar_entries": ["30", "−−", "1"],460 }461 chunk = Chunk(value)...

Full Screen

Full Screen

test (2).py

Source:test (2).py Github

copy

Full Screen

...13 @staticmethod14 def print_result():15 print(f'Passed: {Test.passed}, Failed: {Test.faild}')16 @staticmethod17 def parse_test(name: str, src: str, result: list) -> bool:18 parser = Parser()19 parsed = str(parser.parse(src))20 if result[0] == parsed:21 print(f'\t{name}\t: passed')22 Test.passed += 123 else:24 print(f'\t{name}\t: failed {parsed}')25 Test.faild += 126 @staticmethod27 def execute_test(name: str, src: str, result: list) -> bool:28 parser = Parser()29 random = Random()30 if len(result) == 1:31 executed = random.execute(parser.parse(src))...

Full Screen

Full Screen

test_parse.py

Source:test_parse.py Github

copy

Full Screen

2myPath = os.path.dirname(os.path.abspath(__file__))3sys.path.insert(0, myPath + '/../')4from lexer import lexer5import parse6def parse_test(rule, s):7 p = parse.build_parser(lexer.lex_string(s))8 p.parse(rule, s)9 10def test_ast_lit_num_dec():11 parse_test("LitNum", "42")12def test_ast_lit_num_hex():13 parse_test("LitNum", "0x2a")14def test_ast_lit_num_bin():15 parse_test("LitNum", "0b101010")16def test_ast_ident_1():17 parse_test("Ident", "asdf")18def test_ast_ident_dot():19 parse_test("Ident", ".")20def test_parse_test_ident_sep_comma(): 21 parse_test("IdentSepComma", "a") 22def test_parse_test_ident_sep_comma_Multi(): 23 parse_test("IdentSepComma", "a, a, a, a, a")24def test_parse_test_ident_list(): 25 parse_test("IdentList", "()") 26def test_parse_test_ident_list1(): 27 parse_test("IdentList", "(a)") 28def test_parse_test_ident_list2(): 29 parse_test("IdentList", "(a, b)")30def test_parse_test_expr_list():31 parse_test("ExprList", "(1, 1, 1)") 32 33# ------------------------------------------------------------------ 34def test_ast_binop_star():35 parse_test("Binop", "*")36def test_ast_binop_plus():37 parse_test("Binop", "+")38def test_ast_binop_fslash():39 parse_test("Binop", "/") 40def test_ast_binop_minux():41 parse_test("Binop", "-") 42def test_ast_binop_left_shift():43 parse_test("Binop", "<<") 44def test_ast_binop_right_shift():45 parse_test("Binop", ">>")46 47def test_stmt_1():48 parse_test("Stmt", "a = 23")49def test_stmt_2():50 parse_test("Stmt", ". = 23")51def test_stmt_3():52 parse_test("Stmt", ". = 23 << 1") 53def test_stmt_4():54 parse_test("Stmt", ". = 1+(-0x23 << --0b01)")55def test_stmt_5():56 parse_test("Stmt", "betaopc(0x1B,RA,0,RC)") 57def test_stmt_6():58 parse_test("Stmts", "a=10 b=20 a b c")59def test_stmt_7():60 parse_test("Stmts", "a=10 \n b=20 \n c=30 \n")61def test_stmt_8():62 parse_test("Stmts", "A")63def test_stmt_9():64 parse_test("Stmts", ". . . .")65 66def test_macro_0():67 parse_test("Macro", ".macro CALL(label) BR(label, LP) //asdf \n")68def test_macro_1():69 parse_test("Macro", ".macro RTN() JMP(LP)\n")70def test_macro_2():71 parse_test("Macro", ".macro XRTN() JMP(XP)\n")72def test_macro_3():73 parse_test("Macro", ".macro GETFRAME(OFFSET, REG) LD(bp, OFFSET, REG) \n")74def test_macro_4():75 parse_test("Macro", ".macro PUTFRAME(REG, OFFSET) ST(REG, OFFSET, bp) \n")76def test_macro_5():77 parse_test("Macro", ".macro CALL(S,N) BR(S,lp) SUBC(sp, 4*N, sp) \n")78def test_macro_6():79 parse_test("Macro", ".macro ALLOCATE(N) ADDC(sp, N*4, sp) \n")80def test_macro_7():81 parse_test("Macro", ".macro DEALLOCATE(N) SUBC(sp, N*4, sp) \n")82def test_macro_8():83 parse_test("Macro", ".macro save_all_regs(WHERE) save_all_regs(WHERE, r31)\n")84def test_macro_9():85 parse_test("Macro", ".macro A(a) {\nA\n}")86def test_macro_10():87 parse_test("Macro", ".macro A(a) {A}")88def test_macro_11():89 parse_test("Macro", ".macro extract_field1 (RA, M, N, RB) {\na = 10\n }")90def test_macro_12():91 parse_test("Macro", ".macro A(a) {\nA\n}")92def test_macro_13():93 parse_test("Macro", ".macro A(a) {A\n A\n A}\n\n")94def test_macro_14():95 parse_test("Macro", ".macro JMP(RA, RC) betaopc(0x1B,RA,0,RC)\n ")96def test_macro_15():97 parse_test("Macro", ".macro LD(RA, CC, RC) betaopc(0x18,RA,CC,RC)\n ")98def test_macro_16():99 parse_test("Macro", ".macro LD(CC, RC) betaopc(0x18,R31,CC,RC)\n ")100def test_macro_17():101 parse_test("Macro", ".macro ST(RC, CC, RA) betaopc(0x19,RA,CC,RC)\n ")102def test_macro_18():103 parse_test("Macro", ".macro ST(RC, CC) betaopc(0x19,R31,CC,RC)\n ")104def test_macro_19():105 parse_test("Macro", ".macro LDR(CC, RC) BETABR(0x1F, R31, RC, CC)\n")106def test_macro_20():107 parse_test("Macro", ".macro PUSH(RA) ADDC(SP,4,SP) ST(RA,-4,SP)\n ")108def test_macro_21():109 parse_test("Macro", ".macro POP(RA) LD(SP,-4,RA) ADDC(SP,-4,SP)\n ")110def test_top_level_0():111 parse_test("Macro", ".macro A (RA, M, N, RB) {a = 10}") 112def test_top_level_1():113 parse_test("Macro", ".macro PUTFRAME(REG, OFFSET) ST(REG, OFFSET, bp)\n") 114def test_top_level_2():115 parse_test("Macro", ".macro PUTFRAME(REG, OFFSET) ST(REG, OFFSET, bp)\n") 116def test_top_level_3():117 parse_test("TopLevel", ".macro PUTFRAME(REG, OFFSET) ST(REG, OFFSET, bp)\n")118def test_top_level_4():119 parse_test("TopLevel", ".macro LONG(x) WORD(x) WORD(x >> 16) // asdfasdf \n")120def test_top_level_5():121 file_test("macroblock.uasm")122 123def file_test(f):124 txt = open("./tests/"+f).read()125 parse_test("TopLevel", txt)126 127def test_files_1():128 file_test("macroblock.uasm") 129def test_files_2():130 file_test("beta1.uasm")131def test_files_3():132 file_test("beta.uasm")133def test_processor_0():134 parse_test("Proc", '.text "asdf"') 135def test_processor_1():136 parse_test("Proc", '.options mul')137 138def test_parse_test_assn_1(): 139 parse_test("Assn", "a = 23")140def test_parse_test_assn_2(): 141 parse_test("Assn", ". = 23")142def test_parse_test_assn_3(): 143 parse_test("Assn", ". = 23 << 1") 144def test_parse_test_assn_4(): 145 parse_test("Assn", ". = 1+(-0x23 << --0b01)")146def test_parse_test_assn_5(): 147 parse_test("Assn", "VEC_RESET = 0")148def test_parse_test_assn_6(): 149 parse_test("Assn", "VEC_II = 4")150 151def test_parse_test_call_1():152 parse_test("Call", "Hello(asdf,123)") 153def test_parse_test_call_2():154 parse_test("Call", "A_(1,2,3,4,-0x123)")155def test_parse_test_call_3():156 parse_test("Call", "Asdf()")157def test_parse_test_expr_1(): 158 parse_test("Expr2", "1 + 2 + (3)")159def test_parse_test_expr_2(): 160 parse_test("Expr2", "(1) + 2 + (3)")161def test_parse_test_expr_3():162 parse_test("Expr2", "(1 + 2)")163def test_parse_test_expr_4():164 parse_test("Expr2", "(1+2+3)")165def test_parse_test_expr_5():166 parse_test("Expr2", "((1)+2+3)")167def test_parse_test_expr_6():168 parse_test("Expr2", "(((1)))")169def test_parse_test_expr_7():170 parse_test("Expr2", "((1+1))")171def test_parse_test_expr_8():172 parse_test("Expr2", "((1+(1+1)))")173def test_parse_test_expr_9():174 parse_test("Expr2", "(1+1+(1+(1+1)))")175def test_parse_test_expr_10():176 parse_test("Expr2", "(((1+((1))+(1+(1+1)))))")177def test_parse_test_expr_11():178 parse_test("Expr2", "1+(2+3)+4")179def test_parse_test_expr_12():180 parse_test("Expr2", "1020 + 0xDeadBeef + 0b101 + (3)")181def test_parse_test_expr_13():182 parse_test("Expr2", "1020 << 0xDeadBeef - (0b101 / (3))")183def test_parse_test_expr_14():184 parse_test("Expr2", "(-1020 + -0x200)") 185def test_parse_test_expr_15():186 parse_test("Expr2", "-(1 + -1)")187def test_parse_test_expr_16():188 parse_test("Expr2", "--(1 + -1)")189def test_parse_test_expr_17():190 parse_test("Expr2", "--(---1 + --(--1))")191def test_parse_test_expr_18():192 parse_test("Expr2", "--(--1%--(2>>1--1))")193def test_parse_test_expr_19():194 parse_test("Expr2", "(.+_-_+.)")195def test_parse_test_expr_20():...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run avocado automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful