Skip to content

Commit 07e77fa

Browse files
authored
merge: Add testcase to AlternativeStringArrange Algorithm (TheAlgorithms#1026)
* Add test case to HexToRGB algorithm * Add testcase to AlternativeStringArrange Algorithm * deleting coppy file
1 parent 9befd92 commit 07e77fa

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { AlternativeStringArrange } from '../AlternativeStringArrange'
2+
3+
test('AlternativeStringArrange(Agrtm, loih) -> Algorithm', () => {
4+
const str1 = 'Agrtm'
5+
const str2 = 'loih'
6+
const res = AlternativeStringArrange(str1, str2)
7+
expect(res).toEqual('Algorithm')
8+
})
9+
10+
test('AlternativeStringArrange(JvSrp, aacit) -> JavaScript', () => {
11+
const str1 = 'JvSrp'
12+
const str2 = 'aacit'
13+
const res = AlternativeStringArrange(str1, str2)
14+
expect(res).toEqual('JavaScript')
15+
})
16+
17+
test('AlternativeStringArrange(abc, def) -> adbecf', () => {
18+
const str1 = 'abc'
19+
const str2 = 'def'
20+
const res = AlternativeStringArrange(str1, str2)
21+
expect(res).toEqual('adbecf')
22+
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy