diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-18 16:36:07 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-18 16:36:07 +0100 |
commit | ecaef964232f7889eb3eab35b69cebbf3221ad66 (patch) | |
tree | 56759ff61e0512db9debfceb6f119ea3ea4dc911 /tests/codeigniter/core/Utf8_test.php | |
parent | 60f71be48a6b91cc314908c3c0007f13e9cb2f0a (diff) | |
parent | b2a0e70585367e59bf2d106629c0e9c3ab1370c2 (diff) |
Merge branch 'develop' into feature/output_compressed_cache
Diffstat (limited to 'tests/codeigniter/core/Utf8_test.php')
-rw-r--r-- | tests/codeigniter/core/Utf8_test.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/codeigniter/core/Utf8_test.php b/tests/codeigniter/core/Utf8_test.php index caa7b6986..71299134e 100644 --- a/tests/codeigniter/core/Utf8_test.php +++ b/tests/codeigniter/core/Utf8_test.php @@ -11,10 +11,15 @@ class Utf8_test extends CI_TestCase { public function test_convert_to_utf8() { - $this->assertEquals( - $this->utf8->convert_to_utf8('๒ๅ๑๒', 'WINDOWS-1251'), - 'ัะตัั' - ); + $this->assertEquals('ัะตัั', $this->utf8->convert_to_utf8('๒ๅ๑๒', 'WINDOWS-1251')); + } + + // -------------------------------------------------------------------- + + public function test_is_ascii() + { + $this->assertTrue($this->utf8->is_ascii_test('foo bar')); + $this->assertFalse($this->utf8->is_ascii_test('ัะตัั')); } }
\ No newline at end of file |