diff --git a/test/test_whatsapp.py b/test/test_whatsapp.py index 68b484c..85ad66a 100644 --- a/test/test_whatsapp.py +++ b/test/test_whatsapp.py @@ -35,5 +35,9 @@ def test_dateformat5(): assert_equal_from_file("dateformat5") +def test_dateformat6(): + assert_equal_from_file("dateformat6") + + def test_unicode(): assert_equal_from_file("unicode") diff --git a/test/whatsapp/test_dateformat6.txt b/test/whatsapp/test_dateformat6.txt new file mode 100644 index 0000000..296d7b8 --- /dev/null +++ b/test/whatsapp/test_dateformat6.txt @@ -0,0 +1,6 @@ +21/10/21, 15:21:45 - John Doe: Lorem ipsum dolor sit amet. +22/10/21, 15:21:46 - John Doe: Lorem ipsum dolor sit amet. + +23/10/21, 15:21:47 - John-John Doe: Lorem ipsum : dolor sit amet. +24/10/21, 15:21:48 - Jahn Doe: Lorem ipsum dolor sit amet, +consectetur adipiscing elit. Duis libero. \ No newline at end of file diff --git a/test/whatsapp/test_dateformat6_target.csv b/test/whatsapp/test_dateformat6_target.csv new file mode 100644 index 0000000..4130e82 --- /dev/null +++ b/test/whatsapp/test_dateformat6_target.csv @@ -0,0 +1,5 @@ +timestamp,author,message,weekday,hour,words,letters +2021-10-24 15:21:48,Jahn Doe,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis libero.",Sunday,15,10,69 +2021-10-23 15:21:47,John-John Doe,Lorem ipsum : dolor sit amet.,Saturday,15,6,29 +2021-10-22 15:21:46,John Doe,Lorem ipsum dolor sit amet.,Friday,15,5,27 +2021-10-21 15:21:45,John Doe,Lorem ipsum dolor sit amet.,Thursday,15,5,27 \ No newline at end of file