ensure tab and carriage return are covered by the test

This commit is contained in:
Leif Singer 2023-11-15 14:00:30 +01:00
parent 20f2df8779
commit 1a6961095d
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ class WC_Tests_Product_CSV_Exporter extends WC_Unit_Test_Case {
$data = "@cmd|' /C calc'!A0";
$this->assertEquals( "'@cmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$data = "\tcmd|' /C calc'!A0";
$this->assertEquals( "'\tcmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$data = "\rcmd|' /C calc'!A0";
$this->assertEquals( "'\rcmd|' /C calc'!A0", $exporter->escape_data( $data ) );
}
/**