r112579 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112578‎ | r112579 | r112580 >
Date:07:42, 28 February 2012
Author:amire80
Status:ok
Tags:
Comment:
Test case descriptions.
Modified paths:
  • /trunk/extensions/Narayam/tests/qunit/ext.narayam.tests.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/tests/qunit/ext.narayam.tests.js
@@ -68,11 +68,11 @@
6969 equals( $.narayam.lastNChars( "foobarbaz", 5, 2 ), "ba", "lastNChars works with short buffer." );
7070 equals( $.narayam.lastNChars( "foobarbaz", 2, 5 ), "fo", "lastNChars works with long buffer." );
7171
72 - equals( $.narayam.firstDivergence( "abc", "abc" ), -1 );
73 - equals( $.narayam.firstDivergence( "a", "b" ), 0 );
74 - equals( $.narayam.firstDivergence( "a", "bb" ), 0 );
75 - equals( $.narayam.firstDivergence( "abc", "abd" ), 2 );
76 - equals( $.narayam.firstDivergence( "abcd", "abd" ), 2 );
 72+ equals( $.narayam.firstDivergence( "abc", "abc" ), -1, "firstDivergence - equal strings" );
 73+ equals( $.narayam.firstDivergence( "a", "b" ), 0, "firstDivergence - different one-letter strings" );
 74+ equals( $.narayam.firstDivergence( "a", "bb" ), 0, "firstDivergence - different strings, different lengths" );
 75+ equals( $.narayam.firstDivergence( "abc", "abd" ), 2, "firstDivergence - different strings with equal beginnings" );
 76+ equals( $.narayam.firstDivergence( "abcd", "abd" ), 2, "firstDivergence - different strings, equal beginnings, different lengths" );
7777 teardown();
7878 } );
7979

Status & tagging log