Giter Club home page Giter Club logo

tdd-of-genericstack's Introduction

Test Driven Development of Java GenericStack Class.

The test codes can be found at: Spring2019/CSE427/Assignment1/src/

a) List of all variables:

  1. Objecx X
  2. int top
  3. ArrayList stackObjects

b) Characteristics of Variables:

Objecx X can be null or any valid object. int top can be 0 if stack is empty or 1+ if not. ArrayList stackObjects can have 0 object, or null object or any number of valid objects.

c) Characteristics of inputs:

Characteristics of input Object X is whether it is null or not. True if null, i.e: X = null False if any other value, i.e: X = “String”, “0”, “abcd”

d) Blocks of the characteristics after partitioning:

Partition b1 b2

Q1: Whether Object X is null or not. true false

Partition b1 b2

Q1: Whether stackObjects has null or not. true false

Partition b1 b2 b3

Q1: Value of the int top. 0 1 2 or more

e) Values of each block:

Parameter b1 b2 X null “abcd”

Parameter b1 b2 stackObjects (null, “abcd”) (“abcd”, “edf”)

Parameter b1 b2 b3 top 0 1 3

tdd-of-genericstack's People

Contributors

sheehab avatar

Watchers

Sheehab Muhammad 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.