r77348 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77347‎ | r77348 | r77349 >
Date:11:29, 27 November 2010
Author:hashar
Status:deferred
Tags:
Comment:
Test normalizeForSearch and commafy

See bug 23156 and r64981
Modified paths:
  • /trunk/phase3/maintenance/tests/phpunit/languages/LanguageBe_taraskTest.php (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/languages/LanguageBe_taraskTest.php
@@ -0,0 +1,31 @@
 2+<?php
 3+require_once dirname(dirname(__FILE__)). '/bootstrap.php';
 4+
 5+class LanguageBeTaraskTest extends MediaWikiTestSetup {
 6+ private $lang;
 7+
 8+ function setUp() {
 9+ $this->lang = Language::factory( 'Be_tarask' );
 10+ }
 11+ function tearDown() {
 12+ unset( $this->lang );
 13+ }
 14+
 15+ /** see bug 23156 & r64981 */
 16+ function testSearchRightSingleQuotationMarkAsApostroph() {
 17+ $this->assertEquals(
 18+ "'",
 19+ $this->lang->normalizeForSearch( '’' ),
 20+ 'bug 23156: U+2019 conversion to U+0027'
 21+ );
 22+ }
 23+ /** see bug 23156 & r64981 */
 24+ function testCommafy() {
 25+ $this->assertEquals( '1,234,567', $this->lang->commafy( '1234567' ) );
 26+ $this->assertEquals( '12,345', $this->lang->commafy( '12345' ) );
 27+ }
 28+ /** see bug 23156 & r64981 */
 29+ function testDoesNotCommafyFourDigitsNumber() {
 30+ $this->assertEquals( '1234', $this->lang->commafy( '1234' ) );
 31+ }
 32+}
Property changes on: trunk/phase3/maintenance/tests/phpunit/languages/LanguageBe_taraskTest.php
___________________________________________________________________
Added: svn:eol-style
133 + native

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r64981(bug 23156) Commafy and search normalization update for Belarusian (Taraškie...siebrand21:12, 12 April 2010

Status & tagging log