This repository has been archived by the owner on May 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Federico Vitale
committed
Feb 22, 2018
1 parent
9b61529
commit 4f5b278
Showing
13 changed files
with
127 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {SimpleAdding} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('SIMPLE ADDING', t => { | ||
var argument = 3; | ||
var output = SimpleAdding.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.SimpleAdding.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {arrayMerge} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('ARRAY MERGE', t => { | ||
var argument = [[1, 2], [3, 4]]; | ||
var output = arrayMerge.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.arrayMerge.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {arraySum} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('ARRAY SUM', t => { | ||
var argument = [1, 2, 3]; | ||
var output = arraySum.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.arraySum.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {capitalize} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('CAPITALIZE', t => { | ||
var argument = 'hello'; | ||
var output = capitalize.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.capitalize.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const test = require('ava'); | ||
const {fizzBuzz} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('FIZZ BUZZ', t => { | ||
t.pass() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {isMultipleOf} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('IS MULTIPLE', t => { | ||
var argument = [2, 2]; | ||
var output = isMultipleOf.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.isMultipleOf.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {isPalindrome} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('IS PALINDROME', t => { | ||
var argument = 'racecar'; | ||
var output = isPalindrome.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.isPalindrome.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {longestWord} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('LONGEST WORD', t => { | ||
var argument = 'Hi! How are you?'; | ||
var output = longestWord.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.longestWord.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {maxChar} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('MAX CHAR', t => { | ||
var argument = 'hello'; | ||
var output = maxChar.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.maxChar.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {objectForEach} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('OBJECT FOR EACH', t => { | ||
var argument = {a: 1, b: 2}; | ||
var output = objectForEach.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.objectForEach.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {reverseString} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('REVERSE STRING', t => { | ||
var argument = 'hello'; | ||
var output = reverseString.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.reverseString.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
const test = require('ava'); | ||
const {round} = require('..'); | ||
|
||
test('ROUND', t => { | ||
var output = round(Math.PI, 2); | ||
|
||
return t.deepEqual(output, 3.14); | ||
}) | ||
const test = require('ava'); | ||
const {round} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('ROUND', t => { | ||
var argument = 'hello'; | ||
var output = round.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.round.apply(this, argument)); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('ava'); | ||
const {vowelCount} = require('..'); | ||
const solutions = require('../src/solutions') | ||
|
||
test('VOWEL COUNT', t => { | ||
var argument = 'hello'; | ||
var output = vowelCount.apply(this, argument); | ||
|
||
return t.deepEqual(output, solutions.vowelCount.apply(this, argument)); | ||
}) |