Skip to content

Commit

Permalink
add exercise1
Browse files Browse the repository at this point in the history
  • Loading branch information
talgat-ruby committed Oct 6, 2023
1 parent 374e47c commit e01a854
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion exercise1/problem2/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("exercise1 - problem2", () => {
{ num: 3, lower: 1, upper: 9, expected: true },
{ num: 6, lower: 1, upper: 6, expected: false },
{ num: 4.5, lower: 3, upper: 8, expected: false },
{ num: -5, lower: 10, upper: 6, expected: true },
{ num: -5, lower: 10, upper: 6, expected: false },
{ num: 4, lower: 0, upper: 0, expected: false },
{ num: 10, lower: 9, upper: 11, expected: true },
{ num: 6.3, lower: 2, upper: 6, expected: false },
Expand Down
4 changes: 2 additions & 2 deletions exercise1/problem7/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function isPrimitve() {
function isPrimitive() {
// Your code
}

module.exports = isPrimitve;
module.exports = isPrimitive;
4 changes: 2 additions & 2 deletions exercise1/problem7/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("exercise1 - problem7", () => {
{ arg: () => null, expected: false },
{ arg: {}, expected: false },
{ arg: [1, 2, 3], expected: false },
])(".isPrimitive($arg)", ({ num, lower, upper, expected }) => {
expect(isPrimitive(num, lower, upper)).toBe(expected);
])(".isPrimitive($arg)", ({ arg, expected }) => {
expect(isPrimitive(arg)).toBe(expected);
});
});

0 comments on commit e01a854

Please sign in to comment.