<?php
/**
 * Latvian plurals test
 * 
 * @package    Plurals
 * @category   Unit tests
 * @author     Korney Czukowski
 * @copyright  (c) 2012 Korney Czukowski
 * @license    MIT License
 * 
 * Test Rules:
 * 	zero → n is 0;                                  0
 * 	one → n mod 10 is 1 and n mod 100 is not 11;    1, 21, 31, 41, 51, 61...
 * 	other → everything else                         2-20, 22-30, 32-40...; 0.31, 1.31, 2.31...
 * 
 * @group  plurals
 * @group  plurals.rules
 */
namespace I18n\Plural;

class LatvianTest extends Testcase
{
	public function provide_categories()
	{
		return array(
			array(0, 'zero'),
			array('0', 'zero'),
			array(0.0, 'zero'),
			array('0.0', 'zero'),
			array(1, 'one'),
			array('1', 'one'),
			array(1.0, 'one'),
			array('1.0', 'one'),
			array(21, 'one'),
			array(31, 'one'),
			array(41, 'one'),
			array(51, 'one'),
			array(101, 'one'),
			array(2, 'other'),
			array(3, 'other'),
			array(8, 'other'),
			array(10, 'other'),
			array(11, 'other'),
			array(15, 'other'),
			array(19, 'other'),
			array(20, 'other'),
			array(22, 'other'),
			array(30, 'other'),
			array(32, 'other'),
			array(40, 'other'),
			array(111, 'other'),
			array(0.31, 'other'),
			array(1.31, 'other'),
			array(1.99, 'other'),
		);
	}
}
