From 38be52c52505c259ee5a1a840925189e45c9ca8f Mon Sep 17 00:00:00 2001 From: Leo Balter <leonardo.balter@gmail.com> Date: Fri, 26 Oct 2018 14:13:04 -0400 Subject: [PATCH] fix usage of assertFalse Fixes #1904 --- .../Segmenter/prototype/segment/segment-grapheme-iterable.js | 2 +- .../Segmenter/prototype/segment/segment-line-iterable.js | 2 +- .../Segmenter/prototype/segment/segment-sentence-iterable.js | 2 +- .../Segmenter/prototype/segment/segment-word-iterable.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js b/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js index 41b693f351..4b1955e6eb 100644 --- a/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js +++ b/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js @@ -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; diff --git a/test/intl402/Segmenter/prototype/segment/segment-line-iterable.js b/test/intl402/Segmenter/prototype/segment/segment-line-iterable.js index 88dd9349da..7be007c1a4 100644 --- a/test/intl402/Segmenter/prototype/segment/segment-line-iterable.js +++ b/test/intl402/Segmenter/prototype/segment/segment-line-iterable.js @@ -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; diff --git a/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js b/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js index b7596d3c9c..cf9896a73d 100644 --- a/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js +++ b/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js @@ -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; diff --git a/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js b/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js index d28f0489a7..8f8fad194b 100644 --- a/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js +++ b/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js @@ -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; -- GitLab