-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
false negatives in parsing messages in tests #10
Comments
@manu-chroma yeah, I will remove this if. I think this doesn't make sense anymore since the messages formatting may have changed slightly. I wish I have written unit tests :( |
I was wondering how to check if the given line is valid or not. should we use regex for that or something else. this would be needed in the new parser also. |
should i remove the len() check and put parsing of message in try/except block. it'll give an error when it won't be able to generate a datetime object. |
@manu-chroma Yeah, I think this is a good approach, since I don't remember what is an invalid line anymore to write the regex. |
hey,
the program wasn't working for me until i commented this loop
https://github.com/nmoya/whatsapp-parser/blob/master/parsers/whatsapp.py#L23
it gives false negatives when running with
tests/testChat3.txt
can you please fix the loop. i think the
len()
comparison is not quite right.thanks.
The text was updated successfully, but these errors were encountered: