{"action":"created","issue":{"url":"https://api.github.com/repos/martinmoene/lest/issues/30","repository_url":"https://api.github.com/repos/martinmoene/lest","labels_url":"https://api.github.com/repos/martinmoene/lest/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/martinmoene/lest/issues/30/comments","events_url":"https://api.github.com/repos/martinmoene/lest/issues/30/events","html_url":"https://github.com/martinmoene/lest/issues/30","id":126638886,"number":30,"title":"lest 2 - learn from stf by Joel Falcou","user":{"login":"martinmoene","id":1999290,"avatar_url":"https://avatars0.githubusercontent.com/u/1999290?v=4","gravatar_id":"","url":"https://api.github.com/users/martinmoene","html_url":"https://github.com/martinmoene","followers_url":"https://api.github.com/users/martinmoene/followers","following_url":"https://api.github.com/users/martinmoene/following{/other_user}","gists_url":"https://api.github.com/users/martinmoene/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmoene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmoene/subscriptions","organizations_url":"https://api.github.com/users/martinmoene/orgs","repos_url":"https://api.github.com/users/martinmoene/repos","events_url":"https://api.github.com/users/martinmoene/events{/privacy}","received_events_url":"https://api.github.com/users/martinmoene/received_events","type":"User","site_admin":false},"labels":[{"id":311288479,"url":"https://api.github.com/repos/martinmoene/lest/labels/milestone","name":"milestone","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/martinmoene/lest/milestones/2","html_url":"https://github.com/martinmoene/lest/milestone/2","labels_url":"https://api.github.com/repos/martinmoene/lest/milestones/2/labels","id":1543836,"number":2,"title":"2.0","description":"Study stf by @jfalcou and let lest benefit from it.\r\n\r\nIdeas:\r\n- Use auto test case registration only.\r\n- Use default suite, but still allow for user to specify one, e.g. for testing lest itself.\r\n- Add ULP comparison\r\n- Add PASS/FAIL/TYPE_IS/EXPR_IS/EXPR_TYPE\r\n- Add typed tests (see what can be done w/o Boost).\r\n- Fail empty test cases\r\n- Simplify reporting mechanism\r\n- ...\r\n","creator":{"login":"martinmoene","id":1999290,"avatar_url":"https://avatars0.githubusercontent.com/u/1999290?v=4","gravatar_id":"","url":"https://api.github.com/users/martinmoene","html_url":"https://github.com/martinmoene","followers_url":"https://api.github.com/users/martinmoene/followers","following_url":"https://api.github.com/users/martinmoene/following{/other_user}","gists_url":"https://api.github.com/users/martinmoene/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmoene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmoene/subscriptions","organizations_url":"https://api.github.com/users/martinmoene/orgs","repos_url":"https://api.github.com/users/martinmoene/repos","events_url":"https://api.github.com/users/martinmoene/events{/privacy}","received_events_url":"https://api.github.com/users/martinmoene/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-01-26T10:48:09Z","updated_at":"2016-01-26T10:50:23Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-01-14T11:50:51Z","updated_at":"2018-05-01T22:16:05Z","closed_at":null,"author_association":"OWNER","body":"Study [**stf**](https://github.com/jfalcou/stf) by @jfalcou and let lest benefit from it.\r\n\r\nIdeas:\r\n- [ ] Use auto test case registration only.\r\n- [ ] Use default suite, but still allow for user to specify one, e.g. for testing lest itself.\r\n- [ ] Add ULP comparison\r\n- [ ] Add PASS/FAIL/TYPE_IS/EXPR_IS/EXPR_TYPE\r\n- [ ] Add typed tests (see what can be done w/o Boost).\r\n- [ ] Fail empty test cases\r\n- [ ] Simplify reporting mechanism\r\n- [ ] Use  [C++ Detection Idiom (N4436)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4436.pdf), see below\r\n- [ ]  ...\r\n\r\nNot supporting VC12 (VS2013), the detection mechanism can be simplified to:\r\n\r\n```\r\n#include <type_traits>\r\n\r\n// Use pre-C++17 workaround for void_t:\r\n// using std::void_t;   // template< typename... > using void_t = void;\r\ntemplate<typename... Ts> struct make_void { typedef void type;};\r\ntemplate<typename... Ts> using void_t = typename make_void<Ts...>::type;\r\n\r\ntemplate< typename, typename = void_t<> >\r\nstruct has_begin : std::false_type{};\r\n\r\ntemplate< typename T >\r\nstruct has_begin<T, void_t<decltype(std::declval<T>().begin())>> : std::true_type{};\r\n\r\ntemplate <typename, typename = void_t<> >\r\nstruct has_end : std::false_type{};\r\n\r\ntemplate <typename T>\r\nstruct has_end<T, void_t<decltype(std::declval<T>().end())>> : std::true_type{};\r\n\r\ntemplate <typename T>\r\nusing is_sequence = std::integral_constant<bool, has_end<T>::value && has_begin<T>::value>;\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/martinmoene/lest/issues/comments/385807027","html_url":"https://github.com/martinmoene/lest/issues/30#issuecomment-385807027","issue_url":"https://api.github.com/repos/martinmoene/lest/issues/30","id":385807027,"user":{"login":"martinmoene","id":1999290,"avatar_url":"https://avatars0.githubusercontent.com/u/1999290?v=4","gravatar_id":"","url":"https://api.github.com/users/martinmoene","html_url":"https://github.com/martinmoene","followers_url":"https://api.github.com/users/martinmoene/followers","following_url":"https://api.github.com/users/martinmoene/following{/other_user}","gists_url":"https://api.github.com/users/martinmoene/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmoene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmoene/subscriptions","organizations_url":"https://api.github.com/users/martinmoene/orgs","repos_url":"https://api.github.com/users/martinmoene/repos","events_url":"https://api.github.com/users/martinmoene/events{/privacy}","received_events_url":"https://api.github.com/users/martinmoene/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T22:16:05Z","updated_at":"2018-05-01T22:16:05Z","author_association":"OWNER","body":"I like to keep it at C++11."}}
{"actor":{"display_login":"martinmoene"}}