Skip to content

Commit

Permalink
add HCl
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Nov 28, 2017
1 parent cd780b5 commit 26a2743
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__tests__/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ test('sort an array', () => {
let atoms = ['H', 'Cl', 'C', 'O', 'N', 'Br'];
atoms.sort((a, b) => atomSorter(a, b));
expect(atoms).toEqual(['C', 'H', 'Br', 'Cl', 'N', 'O']);
});


test('sort an array HCl', () => {
let atoms = ['H', 'Cl'];
atoms.sort((a, b) => atomSorter(a, b));
expect(atoms).toEqual(['H', 'Cl']);
});

0 comments on commit 26a2743

Please sign in to comment.