mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
chore(common/web): add two more test cases for ElementString.isEqual()
This commit is contained in:
parent
c615f82db2
commit
704486ae2e
1 changed files with 10 additions and 0 deletions
|
|
@ -375,6 +375,16 @@ describe('Test of ElementString', () => {
|
|||
const two = ElementString.fromStrings(sections, ["𐌰", "𐌱", "𐌲"]);
|
||||
assert.isTrue(one.isEqual(two));
|
||||
});
|
||||
it('returns false when ElementStrings are different lengths', () => {
|
||||
const one = ElementString.fromStrings(sections, ["𐌰", "𐌱", "𐌲"]);
|
||||
const two = ElementString.fromStrings(sections, ["𐌰", "𐌱"]);
|
||||
assert.isFalse(one.isEqual(two));
|
||||
});
|
||||
it('returns false when ElementStrings have different ElemElements', () => {
|
||||
const one = ElementString.fromStrings(sections, ["𐌰", "𐌱", "𐌲"]);
|
||||
const two = ElementString.fromStrings(sections, ["𐌰", "𐌱", "𐌳"]);
|
||||
assert.isFalse(one.isEqual(two));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue