Skip to content

Update arithmetic.test.js - #1

Open
sennap wants to merge 1 commit into
mainfrom
sennap-patch-1
Open

Update arithmetic.test.js#1
sennap wants to merge 1 commit into
mainfrom
sennap-patch-1

Conversation

@sennap

@sennap sennap commented Jan 17, 2024

Copy link
Copy Markdown
Owner

This pull request introduces a new set of unit tests for the subtraction operation in the arithmetic.test.js file. These tests cover a variety of scenarios to ensure the subtraction operation works correctly in different contexts, including positive and negative integers, zero, floating point numbers, and numbers in exponential notation.

The changes include:

  • test/arithmetic.test.js: Added a new describe block for subtraction tests. This includes tests for subtracting two positive integers, subtracting a negative number from a positive number, subtracting a positive number from a negative number, subtracting two negative numbers, subtracting zero from a number, subtracting a number from zero, subtracting two floating point numbers, and subtracting numbers in exponential notation.

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.

1 participant