# Testing ## Main Goal ### Valid SIMPLE Program <!--read & print statement type, simple assignment --> ``` javascript= procedure Week4 { read x; print x; y = 1; z = 3; call Z;} ``` ![](https://i.imgur.com/1Qt6qa4.png) ![](https://i.imgur.com/RH2WcKD.png) ## Edge Cases SIMPLE Program 1. common synonym 2. Parsing: * malformed whitespaces * tabspaces * Variable name invalid * Procedure name invalid ### Valid PQL Queries assign a; Select a read r; Select r print p; Select p stmt s; Select s variable v; Select v procedure p; Select p ## Edge Cases for PQL ### Reference Simple Programs 1. xxx 2. ssdfsd 3. sdfsdf ### PQL Queries 1. <ref simple prg> <xxxx></xxxx> <hr> # 1.2/3 Our team will tackle this procedure for Iteration 1.2/3. <!--read & print statement type, simple assignment --> ``` javascript= procedure Bumblebee { read x; y = 2 * z; call Megatron; z = p - y; if (q!=1) then { z = x + 24; call Ironhide;} else { while (z > 0) { y = x * q - 5; z = z - 1;} y = x + y * z + p * q; call Ironhide;} i = x + j + z; call Barricade;} ```