Giter Club home page Giter Club logo

dwa_05.3-challenge-1's Introduction

Scenario: Starting program state

-GIVEN that the submit button has not been pressed yet
-AND the code has just loaded
-THEN “NO calculation performed” should be displayed at the bottom

Scenario: Dividing numbers result in a whole number

-GIVEN that the submit button is pressed
-WHEN 20 is entered into the first input
-AND 10 is entered into the second input
-THEN 4 should be displayed at the bottom

⁡⁣⁣⁢Unresolved Stories⁡

Scenario: Dividing numbers result in a decimal number

-GIVEN that the submit button is pressed
-WHEN 20 is entered into the first input
-AND 3 is entered into the second input
-THEN the number 6 with no decimal should be shown

⁡⁣⁢⁣Scenario: Validation when values are missing⁡

-GIVEN that the submit button is pressed
-WHEN either or both inputs are empty
-THEN the divisions should not be done
-AND the following should be displayed: “Division not performed. Both values are required in inputs. Try again”.

⁡⁣⁢⁣Scenario: An invalid division should log an error in the console⁡

-GIVEN that the submit button is pressed
-WHEN 20 is entered into the first input
-AND -3 is entered into the second input
-THEN the division should not be done
-AND the following should be displayed: “Division not performed. Invalid number provided. Try again”.
-AND an error should be logged in the browser console that shows the call stack
-BUT the program should not crash entirely

⁡⁣⁢⁣Scenario: Providing anything that is not a number should crash the program⁡

-GIVEN that the submit button is pressed
-WHEN ‘YOLO’ is entered into the first input
-AND ‘+++’ is entered into the second input
-THEN the entire screen should be replaced with “Something critical went wrong. Please reload the page
-AND an error should be logged in the browser console that shows the call stack.

dwa_05.3-challenge-1's People

Contributors

duanescheeperswebdeveloper avatar

Watchers

 avatar

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.