virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

expression-evaluation_Simulation #167

Open yoogottamk opened 5 years ago

yoogottamk commented 5 years ago

Defect description

Empty expressions [or even empty bracket sequences] are evaulated

Steps to reproduce

Just load the page, then click the following buttons ( -> ) and evaluate

Expected result

Such a sequence does not make sense, so it should not go ahead and try to compute the result. It tries to do so and fails.

If you don't press anything and evaluate, it shows 0 If you enter an empty bracket sequence, it shows NaN

Screenshot

stack_calc_fails_part4_or_5_i_cant_remember