File tree Expand file tree Collapse file tree
fullTextTests/testTexts/ja Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const expectedResults = {
6666 textLength : {
6767 isApplicable : true ,
6868 score : 9 ,
69- resultText : "<a href='https://yoa.st/34n' target='_blank'>Text length</a>: The text contains 3165 characters. Good job!" ,
69+ resultText : "<a href='https://yoa.st/34n' target='_blank'>Text length</a>: The text contains 3022 characters. Good job!" ,
7070 } ,
7171 externalLinks : {
7272 isApplicable : true ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ describe( "A test to count sentence lengths.", function() {
3535
3636 expect ( lengths ) . toEqual ( [
3737 { sentence : "自然おのずから存在しているもの" , sentenceLength : 15 } ,
38- { sentence : "歩くさわやかな森 <span style='color: red;'> 自然 </span>" , sentenceLength : 11 } ,
38+ { sentence : "歩くさわやかな森 <span style='color: red;'> 自然 </span>" , sentenceLength : 10 } ,
3939 ] ) ;
4040 } ) ;
4141} ) ;
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ describe( "counts characters in a string", function() {
1212 "東京オリンピック開会直前の1964年(昭和39年)10月1日に開業した。" ) ) . toBe ( 136 ) ;
1313 } ) ;
1414 it ( "makes sure the countCharacters function still works when the input is a non-Japanese string" , function ( ) {
15- expect ( countCharactersFunction ( "this is a string" ) ) . toBe ( 16 ) ;
15+ expect ( countCharactersFunction ( "this is a string" ) ) . toBe ( 13 ) ;
1616 expect ( countCharactersFunction ( "Низът в компютърните науки е крайна поредица от символи " +
17- "(представляващи краен брой знаци)." ) ) . toBe ( 90 ) ;
17+ "(представляващи краен брой знаци)." ) ) . toBe ( 78 ) ;
1818 } ) ;
1919 it ( "makes sure that the table of contents is excluded from the calculation" , function ( ) {
2020 const text = "<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>目次</h2><ul><li><a " +
@@ -35,7 +35,7 @@ describe( "counts characters in a string", function() {
3535 "<p>戦後においては一般に広義の<a href=\"https://ja.wikipedia.org/wiki/%E7%AB%A5%E8%AC%A1\">童謡</a>にカテゴライズされる本作品は、" +
3636 "初出本の題名にもあるとおり青木自身は「唱歌」であるとし、「学校や家庭で」歌ってもらえれば本懐であるとしている。しかし発表当時の教育現場では、" +
3737 "本作品を歌うことは原則上はできなかった。</p>" ;
38- expect ( countCharactersFunction ( text ) ) . toBe ( 757 ) ;
38+ expect ( countCharactersFunction ( text ) ) . toBe ( 744 ) ;
3939 } ) ;
4040 it ( "makes sure that no characters are counted when a URL is embedded in video tags" , function ( ) {
4141 const text = "<!-- wp:embed {\"url\":\"https://www.youtube.com/watch?v=cbP2N1BQdYc\",\"type\":\"video\"," +
You can’t perform that action at this time.
0 commit comments