From c9a01f64cc98c287e30b8066ff60f8489c086cf8 Mon Sep 17 00:00:00 2001 From: Arandi Lopez Date: Wed, 21 Jun 2017 12:43:21 -0500 Subject: [PATCH] Str test for removing accents --- tests/StrTest.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/StrTest.php diff --git a/tests/StrTest.php b/tests/StrTest.php new file mode 100644 index 0000000..3e674da --- /dev/null +++ b/tests/StrTest.php @@ -0,0 +1,21 @@ +assertEquals('cojon', Str::removeAccent('cojón')); + } + + public function test_enie_char_is_allowed() + { + $this->assertEquals('coño', Str::removeAccent('coño')); + } + + public function test_remove_accents_in_greek() + { + $this->assertEquals('μαλακας', Str::removeAccent('μαλάκας')); + } +}