Skip to content

Commit

Permalink
testс #C33908 поправка
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuseinov committed May 20, 2020
1 parent 2a9f44d commit d474042
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/tests/String.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class core_tests_String extends unit_Class
public static function test_Utf2ascii($text)
{
$originalText = 'Йо Екс Бъ Ия ЙО ЕКС БЪ ИЯ бъ ия йо екс э а б в г д е ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь ю я Э А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ь Ы Ю Я ” À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ ѓ ѕ ј љ њ ќ џ Ѓ Ѕ Ј Љ Њ Ќ Џ';
$expectedText = 'Jo Ex BU Ia JO EX BU IA bu ia jo ex e a b v g d e j z i y k l m n o p r s t u f h ts ch sh sht a yi j yu ya E A B V G D E J Z I Y K L M N O P R S T U F H TS CH SH SHT A J YI YU YA \" A A A A A A AE C E E E E I I I I TH N O O O O O O U U U U Y TH ss a a a a a a ae c e e e e i i i i th n o o o o o o u u u u y th y gj d j l n k dj GJ D J L N K Dj';
$expectedText = 'Yo Ex Bu Ia YO EX BU IA bu ia yo ex e a b v g d e zh z i y k l m n o p r s t u f h ts ch sh sht a yi y yu ya E A B V G D E Zh Z I Y K L M N O P R S T U F H Ts Ch Sh Sht A Y YI Yu Ya \" A A A A A A AE C E E E E I I I I TH N O O O O O O U U U U Y TH ss a a a a a a ae c e e e e i i i i th n o o o o o o u u u u y th y gj d j l n k dj GJ D J L N K Dj';
ut::expectEqual(core_String::utf2ascii($originalText), $expectedText);

$originalText = 'ТОВА е ТЕСТ ТЕСт ТЕст Тест тест test Test TEst TESt TEST';
Expand All @@ -38,7 +38,7 @@ public static function test_Utf2ascii($text)
ut::expectEqual(core_String::utf2ascii($originalText), $expectedText);

$originalText = 'TESTЙорданTEST TESTЕкскалибурTEST TESTБългарияTEST TEStТЕСт TEstТЕст'; // CyrLat
$expectedText = 'TESTJordanTEST TESTExkaliburTEST TESTBulgariaTEST TEStTest TEstTest';
$expectedText = 'TESTYordanTEST TESTExkaliburTEST TESTBulgariaTEST TEStTest TEstTest';

ut::expectEqual(core_String::utf2ascii($originalText), $expectedText);

Expand Down
2 changes: 1 addition & 1 deletion csv/tests/Lib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static function test_createCsv($mvc)

$res = csv_Lib::createCsv($restData, $fieldSet, $listFields, $format);
$trimRes = trim($res);
$expect = "Тип на документа,Автор,Създадени документи (бр.)\nЗадачи,\"| <a class=\"\"\"\" profile ceo inactive\"\"\"\" title=\"\"\"\"Йордан Бонев\"\"\"\" href=\"\"\"\"/crm_Profiles/single/1OGU/\"\"\"\">Bachko</a>|\",7\nЗадачи,\"<a class=\"\" profile ceo active\"\" title=\"\"Gabriela Petrova\"\" href=\"\"/crm_Profiles/single/27NmR/\"\">Gaby</a>\",1\nВарниш (DS-09454 a),кг,95\n#Ч-та LD вън.др 50х40 - ГЕПАРД,\"<a href=\"\"/sales_Invoices/single/5739YjN/\"\" class=\"\" linkWithIcon\"\" style=\"\"background-image:url(&#039;/sbf/bgerp/img/16/invoice_0722143638.png&#039;);\"\">0000005642</a>\",15 800\nЧ-та LD вън.др 50х40 - ГЕПАРД - 3986652,#Sal5664,4 000.0000\n##Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,\||Sal5664|,4 000 0000\n";
$expect = "Тип на документа,Автор,Създадени документи (бр.),Дата,Стойност,Процент\nЗадачи,\"| <a class=\"\"\"\" profile ceo inactive\"\"\"\" title=\"\"\"\"Йордан Бонев\"\"\"\" href=\"\"\"\"/crm_Profiles/single/1OGU/\"\"\"\">Bachko</a>|\",7,20.05.2020,\"29084,00\",\"1500,00%\"\nЗадачи,\"<a class=\"\" profile ceo active\"\" title=\"\"Gabriela Petrova\"\" href=\"\"/crm_Profiles/single/27NmR/\"\">Gaby</a>\",1,20.05.2020,\"8754,00\",\"0,00%\"\nВарниш (DS-09454 a),кг,95,20.05.2020,\"244,00\",\"2500,00%\"\n#Ч-та LD вън.др 50х40 - ГЕПАРД,\"<a href=\"\"/sales_Invoices/single/5739YjN/\"\" class=\"\" linkWithIcon\"\" style=\"\"background-image:url(&#039;/sbf/bgerp/img/16/invoice_0722143638.png&#039;);\"\">0000005642</a>\",15 800,21.04.2015,\"15,00\",\"100,00%\"\nЧ-та LD вън.др 50х40 - ГЕПАРД - 3986652,#Sal5664,4 000.0000,05.12.2014,\"88,00\",\"9900,00%\"\n##Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,\||Sal5664|,4 000 0000,05.12.2014,\"99,76\",\"800,00%\"";
$trimExp = trim($expect);

ut::expectEqual($trimExp, $trimRes);
Expand Down
10 changes: 5 additions & 5 deletions csv/tests/Tests.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Тип на документа,Автор,Създадени документи (бр.)
Тип на документа,Автор,Създадени документи (бр.),Дата,Стойност,Процент
Задачи,| <a class="" profile ceo inactive"" title=""Йордан Бонев"" href=""/crm_Profiles/single/1OGU/"">Bachko</a>|,7,01.04.16,"29084,0300","15 %"
Задачи,"<a class="" profile ceo active"" title=""Gabriela Petrova"" href=""/crm_Profiles/single/27NmR/"">Gaby</a>",1,"01.04.16",'8754,9976','18%'
Варниш (DS-09454 a),кг,95,'01.04.16',"244,0300",25.00%
Задачи,"<a class="" profile ceo active"" title=""Gabriela Petrova"" href=""/crm_Profiles/single/27NmR/"">Gaby</a>",1,"01.04.16","8754,9976",'18%'
Варниш (DS-09454 a),кг,95,01.04.16,"244,0300",25.00%
#Ч-та LD вън.др 50х40 - ГЕПАРД,"<a href=""/sales_Invoices/single/5739YjN/"" class="" linkWithIcon"" style=""background-image:url(&#039;/sbf/bgerp/img/16/invoice_0722143638.png&#039;);"">0000005642</a>",15 800,04/21/15,15,01,90.9%
Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,"#Sal5664",4 000.0000,'12/05/14',9,88,"99,99 %"
##Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,\||Sal5664|,4 000 0000,"12/05/14",'99.76','8,89%'
Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,"#Sal5664",4 000.0000,12/05/14,88,"99,99 %"
##Ч-та LD вън.др 50х40 - ГЕПАРД - 3986652,\||Sal5664|,4 000 0000,"12/05/14","99.76","8,89%"

0 comments on commit d474042

Please sign in to comment.