Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development for stleary#516 completed with rebased repository #1

Merged

Conversation

viveksacademia4git
Copy link
Owner

  • Introduced JSONObject(int) constructor.

    • int > Initial capacity of the underlying data structure
  • Test for new introduced JSONArray(int) constructor.

    1. Checked with input parameter: 0
    2. Checked with input parameter: positive number
    3. Checked with positive number input parameter and compared length
    4. If input parameter is negative number JSONException is thrown:
      JSONArray initial capacity cannot be negative.

- Introduced JSONObject(int) constructor.
   - int > Initial capacity of the underlying data structure

- Test for new introduced JSONArray(int) constructor.
   1. Checked with input parameter: 0
   2. Checked with input parameter: positive number
   3. Checked with positive number input parameter and compared length
   4. If input parameter is negative number JSONException is thrown:
         JSONArray initial capacity cannot be negative.
@viveksacademia4git viveksacademia4git merged commit 8cc6075 into master Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants