src/test-iter.cc


Log

Author Commit Date CI Message
Behdad Esfahbod 59a8fa53 2019-04-24T12:19:13 [iter] Add tests for casting to hb_iter_t<> base class for hb_sorted_array_t<> Something's phishy about hb_sorted_array_t<>. Can't get it work nicely with change I'm making. Ugh..
Behdad Esfahbod 12017db0 2019-04-24T09:24:38 Move test code around
Ebrahim Byagowi 64ca2ffa 2019-04-23T01:10:46 Fix clang's -Wmain complain (#1678)
Behdad Esfahbod 25dd88ef 2019-04-22T17:45:23 Err, fix hb_invoke() variadic
Behdad Esfahbod 42ab32cb 2019-04-02T18:41:33 [iter] Remove passing pointer to hb_iter() While doable with hb_deref_pointer() as well, we also would then need to do it in a ton of places. Not worth it / messy.
Behdad Esfahbod b6f29bf1 2019-04-02T18:12:01 [iter] Accept pointers in hb_iter() No idea how to avoid dupicating code. Was hoping hb_deref_pointer() would do it, but looks like a pointer can't bind to a universal reference T&&. Humm.
Ebrahim Byagowi edad6b2c 2019-04-03T00:48:59 [test][iter] minor, fix double promotion warning
Ebrahim Byagowi 062f5d6e 2019-04-02T20:27:00 [test] minor, c style comments
Ebrahim Byagowi afdbf960 2019-04-02T20:25:06 [iter][test] Add another test for hb_reduce Different initial and accumulator types
Ebrahim Byagowi b8642087 2019-04-02T00:30:06 [iter] hb_reduce, accumulator with a different type
Ebrahim Byagowi e526414c 2019-03-31T12:41:58 [iter] Implement hb_reduce
Behdad Esfahbod 78fc43f2 2019-03-31T19:17:07 [iter] Fix up build, ouch Yeah, some things not very clear...
Behdad Esfahbod e5306927 2019-03-29T23:31:07 [iter] Fix bug in hb_any() and hb_none()
Behdad Esfahbod 443db2a2 2019-03-29T10:46:44 [iter] Remove hb_len() Not planning on using it. So remove. Can add later if needed.
Behdad Esfahbod f639b9a8 2019-03-28T21:34:47 [iter] Add hb_len() function-object
Behdad Esfahbod 77060bcd 2019-02-15T16:55:08 [iter] Add hb_all, hb_any, hb_none
Behdad Esfahbod fa35d3fd 2019-02-14T14:04:05 [iter] Add hb_drain
Behdad Esfahbod 773d7563 2019-02-14T11:40:22 [iter] Add hb_apply()
Behdad Esfahbod 5fa52e62 2019-02-14T10:51:02 [iter] Accept iterator, not iterable, in hb_sink()()
Behdad Esfahbod 849a0f17 2019-01-29T17:10:19 [iter] Add hb_iter_with_fallback_t instead
Behdad Esfahbod 4d40ed9d 2019-01-29T13:55:23 [iter] Add hb_iter_with_mixin_t<>
Behdad Esfahbod 84a25d79 2019-01-29T13:39:19 [iter] Rename
Behdad Esfahbod 57795bc8 2019-01-28T16:23:12 [iter] Add operator>> and operator<<
Behdad Esfahbod 0363ce65 2019-01-27T01:03:56 [iter] Accept C arrays in hb_iter()
Behdad Esfahbod b62e7f92 2019-01-27T00:51:43 [test] Test unary operator+ "Test" as in compiles..
Behdad Esfahbod 778c96b8 2019-01-27T00:50:54 [iter] Fix hb_iter()
Behdad Esfahbod 2f5b1a91 2019-01-27T00:49:37 [iter] Add unary operator+ that returns a copy
Behdad Esfahbod fbab07f9 2019-01-27T00:44:45 [iter] Add hb_bool() and make hb_filter default to it for predicate
Behdad Esfahbod 2aff6d96 2019-01-26T22:54:25 [iter] Test that default-constructed iterators are empty
Behdad Esfahbod 090fe56d 2019-01-25T15:34:03 Merge branch 'master' into iter
Behdad Esfahbod 2658e40f 2019-01-08T12:53:02 [iter] Add hb_is_random_access_iterator()
Behdad Esfahbod 445364d8 2019-01-08T12:42:15 [iter] Rename hb_is_[sorted_]iterator() -> hb_is_[sorted_]iterator_of()
Behdad Esfahbod ca6adcd1 2019-01-08T14:23:12 [iter] Test hb_is_iterable / hb_is_iterator
Behdad Esfahbod 47333c8a 2019-01-07T21:38:49 [iter] Fix operator->
Behdad Esfahbod 85969e35 2019-01-07T18:59:26 [iter] Fix test
Behdad Esfahbod 6cd96ba1 2018-12-30T20:51:31 [iter] Make is_random_access_iterator a constant We cannot rely on constexpr functions...
Behdad Esfahbod 859a880b 2018-12-30T02:11:03 [iter] Add back operator + Too ugly to remove..
Behdad Esfahbod 076faf7c 2018-12-30T01:40:08 [iter] Disable operator + To see if it makes bots happy... This is frustrating.
Behdad Esfahbod 037f735e 2018-12-28T21:09:15 [iter] Remove friend operator +, hoping to fix some bots
Behdad Esfahbod 5ec11ce1 2018-12-27T17:17:28 [iter] Clarify readonly vs lvalue iterators lvalue iterators must declare __item_type__ as a reference.
Behdad Esfahbod 2cbf5bf3 2018-12-27T16:55:18 [iter] Test OT::Coverage iter
Behdad Esfahbod 570473a3 2018-12-27T13:29:51 [iter] Make hb_sorted_array_t work as iter Ugly, but does the job.
Behdad Esfahbod 3dea9aff 2018-12-26T19:56:37 [iter] Test default-constructability
Behdad Esfahbod 743ff093 2018-12-26T19:54:52 [iter] Implement friend opeator + (int, iter)
Behdad Esfahbod 2ea79e03 2018-12-26T19:01:46 [iter] Minor
Behdad Esfahbod fb053b63 2018-12-26T19:01:30 [iter] Rename random_access() to constexpr is_random_access()
Behdad Esfahbod d3976b7e 2018-12-26T18:54:27 [iter] Make them work, mostly
Behdad Esfahbod 7987095e 2019-01-09T01:02:38 [meta] Remove hb_enable_if_t It was only used for C++<11 which does not allow default parameters in function templates. Looks like we cannot support <11 anyway, so, start cleaning up.
Behdad Esfahbod 84e5d002 2019-01-08T23:57:16 [iter] Add hb_zip()
Behdad Esfahbod 636786ec 2019-01-08T23:48:35 [iter] Rename __item_type__ to __item_t__
Behdad Esfahbod 3fc03e42 2019-01-08T16:33:31 [iter] Use static_assert with hb_is_random_access_iterator() Both, checks constexpr'ness, and fixes build with cra**y implementations of assert() macro: test-iter.cc:108:11: error: too many arguments provided to function-like macro invocation assert (hb_is_random_access_iterator (array_iter_t<int>)); ^ ./hb-iter.hh:186:42: note: expanded from macro 'hb_is_random_access_iterator' hb_is_random_access_iterator_of (Iter, typename Iter::item_t) ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:89:9: note: macro '__STRING' defined here \#define __STRING(x) #x ^ test-iter.cc:108:3: error: use of undeclared identifier '__STRING' assert (hb_is_random_access_iterator (array_iter_t<int>)); ^ /usr/include/assert.h:91:21: note: expanded from macro 'assert' : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) ^
Behdad Esfahbod e4355b1c 2018-12-22T16:11:22 [set] Add iter_t as alias to const_iter_t
Behdad Esfahbod 2a33ab05 2018-12-21T18:49:27 [iter] Change __more__ to fallback to __len__
Behdad Esfahbod 474a1205 2018-12-21T18:46:51 [array/vector] Rename len to length
Behdad Esfahbod 2fc1860a 2018-12-21T18:09:45 [iter] Split hb_iter_t<> into hb_iter_t<> and hb_iter_mixin_t<>
Behdad Esfahbod 865deeb3 2018-12-21T17:35:58 Adjust internal header dependencies
Behdad Esfahbod 7557e348 2018-12-21T17:21:19 [iter] Move hb_fill() and hb_copy() to hb-iter.hh
Behdad Esfahbod 65e8bd56 2018-12-21T16:20:30 [iter] Fix hb_copy() return value
Behdad Esfahbod aaddfaa5 2018-12-21T16:04:38 [iter] Make hb_fill() take collection type, not iter Starting to get the hang of when take which.
Behdad Esfahbod 3dbe1e36 2018-12-21T15:53:09 [iter] Add .random_access()
Behdad Esfahbod bdb6da72 2018-12-21T11:20:27 [iter] Fix test again
Behdad Esfahbod e9520752 2018-12-21T11:15:16 Minor
Behdad Esfahbod 35503d7d 2018-12-21T03:03:46 [iter] More prototyping
Behdad Esfahbod 73c7a896 2018-12-21T02:48:28 [iter] Make hb_fill() and hb_copy() take iterators I'm still going back and force...
Behdad Esfahbod 12e506fd 2018-12-21T02:47:04 [iter] Add hb_fill()
Behdad Esfahbod ad3ed58d 2018-12-21T02:12:55 [iter] Start prototyping hb_copy()
Behdad Esfahbod 44af738d 2018-12-21T01:59:37 [iter] Showcase implicit casts
Behdad Esfahbod 8001e00a 2018-12-21T01:53:27 [iter] First sample use
Behdad Esfahbod 314d8698 2018-12-21T00:54:55 [iter] Sketch new iterator design
Behdad Esfahbod f6d5f1e9 2018-12-21T00:23:34 [iter] Add empty test