Skip to content

Commit 85dc4c6

Browse files
authored
Update TriangularNumberCheck.test.js
1 parent 934d81d commit 85dc4c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Maths/test/TriangularNumberCheck.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IsTriangularNumber } from '../IsTriangularNumber'
1+
import { TriangularNumberCheck } from '../TriangularNumberCheck'
22

33
describe.each([
44
{ inputVal:55, expectedVal:10 },
@@ -11,7 +11,7 @@ describe.each([
1111
{ inputVal:1, expectedVal:1 },
1212
])('If the number of $inputVal is triangular', ({inputVal, expectedVal}) => {
1313
test(`should return ${expectedVal}`, () => {
14-
expect(IsTriangularNumber(inputVal)).toBe(expectedVal)
14+
expect(TriangularNumberCheck(inputVal)).toBe(expectedVal)
1515
})
1616
})
1717

@@ -23,7 +23,7 @@ describe.each([
2323
{ inputVal:"fizz", expectedVal:-1 },
2424
])('If the number of $inputVal is completely wrong or negative', ({inputVal, expectedVal}) => {
2525
test(`should return ${expectedVal}`, () => {
26-
expect(IsTriangularNumber(inputVal)).not.toBeLessThan(-1)
26+
expect(TriangularNumberCheck(inputVal)).not.toBeLessThan(-1)
2727
})
2828
})
2929

@@ -34,6 +34,6 @@ describe.each([
3434
{ inputVal:23, expectedVal:0 }
3535
])('If the number of $inputVal is NOT triangular', ({inputVal, expectedVal}) => {
3636
test(`should return ${expectedVal}`, () => {
37-
expect(IsTriangularNumber(inputVal)).toBe(0)
37+
expect(TriangularNumberCheck(inputVal)).toBe(0)
3838
})
3939
})

0 commit comments

Comments
 (0)