Patch for Booleans

0 views
Skip to first unread message

Ulf Lorenz

unread,
Dec 30, 2013, 5:40:56 PM12/30/13
to libt...@googlegroups.com
Hi,

after having opened the ticket a while ago
(https://github.com/juanjosegarciaripoll/tensor/issues/3), I finally
came round to actually patching this. So attached is a patch with three
main items:

1. Added functions all_of, any_of and none_of to be used with Booleans
(the names actually mimic new algorithm functions in C++11). While I
was at this, I also added a logical or.
2. Added a test of all Boolean functions.
3. While writing the test, I noticed why I tend to like test-driven
development: There were some bugs in the logical and and logical not.
Also added some asserts to catch errors.


Ulf
booleans.diff
Reply all
Reply to author
Forward
0 new messages