Giter VIP home page Giter VIP logo

ped's People

Contributors

lckjosh avatar

Watchers

 avatar

ped's Issues

updateBudget command does not accept input of type DOUBLE

Steps to reproduce:

  1. Launch the application.
  2. Enter your name.
  3. Enter 'updateBudget 99.99'
  4. Error message is shown.

Expected behaviour:
Budget is updated to 99.99

Actual behaviour:
Error message is shown and budget is not updated.

image.png

Entering deleteBudget when there is no budget does not show error message.

When there is no budget, entering the deleteBudget command does not provide any output to the user at all.

Steps to reproduce:

  1. Launch the program and enter name.
  2. Enter 'deleteBudget'
  3. There is no output shown.

Expected behaviour:
An error message stating that there is no budget to delete.

Actual behaviour:
No output shown

image.png

Budget does not persist across different runs of the program

Upon entering the budget and exiting the program, subsequent runs of the program do not contain the budget.

Steps to reproduce:

  1. Launch the program and enter name and budget.
  2. Exit the program.
  3. Launch the program again. Program asks for budget again and entering viewBudget results in a message saying that there is no budget.

Expected behaviour:
Budget should be persistent.

Actual behaviour:
Budget does not persist.

image.png

Adding large income/expense amounts results in unexpected amount.

Adding large values for the amount field results in an unexpected amount being added (a small decimal number).

Steps to reproduce:

  1. Enter 'addIncome test /amt 999999999'
  2. Enter 'viewIncomes'
  3. Observe the Amount value

Expected behaviour:
The amount value should not change, OR show an error message to the user stating that large amounts are not accepted.

Actual behaviour:
The amount value is changed.

image.png

No input validation for negative expense/income amount

Upon entering a negative amount for either income or expense, the program takes it as a negative number.

Steps to reproduce: (for income, applies to expense as well)

  1. Enter 'addIncome test /amt -100'
  2. Enter 'viewIncomes'
  3. Observe that there is a negative income.

Expected behaviour:
An error message preventing the user from entering negative income/expense

Actual behaviour:
Negative income/expense is accepted.

image.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.