Skip to content

FeatureB_9 by Group 19#25

Open
Swar-16 wants to merge 58 commits into
dGhoshIIEST:Group_Bfrom
Swar-16:FeatureB_9
Open

FeatureB_9 by Group 19#25
Swar-16 wants to merge 58 commits into
dGhoshIIEST:Group_Bfrom
Swar-16:FeatureB_9

Conversation

@Swar-16
Copy link
Copy Markdown

@Swar-16 Swar-16 commented Mar 29, 2026

This PR introduces set operation support by adding:

  • set.py
  • test_set.py

No changes were made to calculator.py in this PR.

What Was Added

  • Implemented set-related functionality in set.py.
  • Added tests in test_set.py to validate set operations and expected behavior.

What Was Not Changed

  • calculator.py was intentionally left unchanged due to merge/conflict risk.
  • Different groups are using different conventions for implementing modes in the Calculator class and for wiring set operations through that class.
  • To avoid introducing convention-specific conflicts (setting up mode), this PR scopes changes to new set module + tests only.
  • We intend to handle integration of set operations into Calculator modes in a follow-up PR once discussed in class.

Testing

  • Added and executed tests for set functionality in test_set.py.
  • Existing calculator behavior remains unaffected since calculator.py was not modified.

Set Functionality

  • Implemented basic set operations as:
    • Union
    • Intersection
    • Difference
    • Symmetric Difference
  • Also, subset and superset checks were implemented.

Swar-16 and others added 30 commits March 15, 2026 20:24
Swar-16 and others added 28 commits March 29, 2026 12:37
FeatureA_3: Multiplication, Division and test cases added
This reverts commit 09f8f2f, reversing
changes made to 8b06d70.
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.