virtual-labs-archive / computer-programming-responsive-iiith

This repository contains the responsive Computer Programming Lab IIITH
https://cse02-iiith.vlabs.ac.in
Other
1 stars 325 forks source link

Arrays_Simulation_1D #507

Open MohsinMamoon opened 5 years ago

MohsinMamoon commented 5 years ago

Issue: Whitespaces are counted as Inputs and result in an error Message.

Steps to reproduce:

  1. Go to http://cse02-iiith.vlabs.ac.in/exp4/simulation/1-D/index.html
  2. Enter Array size as 2.
  3. Click 'OK'.
  4. Select 'Enter Values Manually'.
  5. Enter '1, 2'.
  6. Click 'Start'

Expected Result: Simulation starts with array values '1' and '2'.

Actual Result: Error is displayed asking to give same number of inputs as the array size.

Screenshot: Screenshot from 2019-03-23 20-10-53

MohsinMamoon commented 5 years ago

Fixed. Commit ID: 602c415

DevikaBoddu commented 5 years ago

Valid fix @MohsinMamoon