fix usage of assertFalse

Fixes #1904
This commit is contained in:
Leo Balter 2018-10-26 14:13:04 -04:00 committed by Rick Waldron
parent 1538a93bc1
commit 38be52c525
4 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ for (const text of [
segments.push(v.segment);
// manually advance the iter.
assertFalse(iter.following());
assert.sameValue(iter.following(), false);
assert.sameValue(iter.breakType, v.breakType);
assert.sameValue(text.substring(prev, iter.position), v.segment);
prev = iter.position;

View File

@ -40,7 +40,7 @@ for (const text of [
segments.push(v.segment);
// manually advance the iter.
assertFalse(iter.following());
assert.sameValue(iter.following(), false);
assert.sameValue(iter.breakType, v.breakType);
assert.sameValue(text.substring(prev, iter.position), v.segment);
prev = iter.position;

View File

@ -40,7 +40,7 @@ for (const text of [
segments.push(v.segment);
// manually advance the iter.
assertFalse(iter.following());
assert.sameValue(iter.following(), false);
assert.sameValue(iter.breakType, v.breakType);
assert.sameValue(text.substring(prev, iter.position), v.segment);
prev = iter.position;

View File

@ -40,7 +40,7 @@ for (const text of [
segments.push(v.segment);
// manually advance the iter.
assertFalse(iter.following());
assert.sameValue(iter.following(), false);
assert.sameValue(iter.breakType, v.breakType);
assert.sameValue(text.substring(prev, iter.position), v.segment);
prev = iter.position;