Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 200e823

Browse files
Merge pull request TheAlgorithms#718 from pomkarnath98/master
Added test for ScrambleStrings and formatted folder structure for oth...
2 parents 255ef9a + 3f6b4c1 commit 200e823

12 files changed

+26
-11
lines changed

‎Navigation/Haversine.test.js renamed to ‎Navigation/test/Haversine.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { haversineDistance } from './Haversine'
1+
import { haversineDistance } from '../Haversine'
22

33
describe('Testing the haversine distance calculator', () => {
44
it('Calculate distance', () => {

‎Sorts/QuickSortRecursive.test.js renamed to ‎Sorts/test/QuickSortRecursive.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { quickSort } from './QuickSortRecursive'
1+
import { quickSort } from '../QuickSortRecursive'
22

33
describe('QuickSortRecursive | Partition In Place Method', () => {
44
it('Expectedly, throw some error if we pass a non-array input', () => {

‎Sorts/SelectionSort.test.js renamed to ‎Sorts/test/SelectionSort.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { selectionSort } from './SelectionSort'
1+
import { selectionSort } from '../SelectionSort'
22

33
describe('selectionSort', () => {
44
it('expects to return the array sorted in ascending order', () => {

‎String/ScrambleStrings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ const helper = function (dp, s1, s2) {
4747
return false
4848
}
4949

50-
console.log(isScramble('great','rgeat'))
50+
export{isScramble}

‎String/CheckVowels.test.js renamed to ‎String/test/CheckVowels.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkVowels } from './CheckVowels'
1+
import { checkVowels } from '../CheckVowels'
22

33
describe('Test the checkVowels function', () => {
44
it('expect throws on use wrong param', () => {

‎String/CheckWordOcurrence.test.js renamed to ‎String/test/CheckWordOcurrence.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkWordOccurrence } from './CheckWordOccurrence'
1+
import { checkWordOccurrence } from '../CheckWordOccurrence'
22
describe('checkWordOccurrence', () => {
33
it('expects throw on insert wrong string', () => {
44
const value = 123

‎String/FormatPhoneNumber.test.js renamed to ‎String/test/FormatPhoneNumber.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { formatPhoneNumber } from './FormatPhoneNumber'
1+
import { formatPhoneNumber } from '../FormatPhoneNumber'
22

33
describe('PhoneNumberFormatting', () => {
44
it('expects to return the formatted phone number', () => {

‎String/LevenshteinDistance.test.js renamed to ‎String/test/LevenshteinDistance.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { levenshteinDistance } from './LevenshteinDistance'
1+
import { levenshteinDistance } from '../LevenshteinDistance'
22

33
describe('levenshteinDistance', () => {
44
it('should calculate edit distance between two strings', () => {

‎String/MaxCharacter.test.js renamed to ‎String/test/MaxCharacter.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { maxCharacter } from './MaxCharacter'
1+
import { maxCharacter } from '../MaxCharacter'
22

33
describe('Testing the maxCharacter function', () => {
44
it('Expect throw with wrong arg', () => {

‎String/PermutateString.test.js renamed to ‎String/test/PermutateString.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { permutate } from './PermutateString'
1+
import { permutate } from '../PermutateString'
22

33
describe('Permutate a string', () => {
44
it('expects to throw an Error with an empty string', () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /