From fbb89512163d4343e915bc4079cd3eccb34f6dcc Mon Sep 17 00:00:00 2001 From: lafrite Date: Wed, 15 Jan 2014 16:54:33 +0100 Subject: [PATCH] add a bug repport! --- TODO | 5 +++-- expression.py | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 0c86743..e88367a 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,5 @@ # Todolist -* Improve fix recognition -* More flexible expression parsing +* Improve fix recognition (DONE) +* More flexible expression parsing (DONE) +* bug: expression can't handle -(-2) diff --git a/expression.py b/expression.py index 9164709..428cbfc 100644 --- a/expression.py +++ b/expression.py @@ -360,6 +360,10 @@ if __name__ == '__main__': exp="-2*4(12 + 1)(3-12)" test(exp) + ## Can't handle it yet!! + #exp="-(-2)" + #test(exp) + import doctest doctest.testmod()