List of commits:
Subject Hash Author Date (UTC)
test args 523b7174ede20ae385ccc131738a32d6de3a412e mbusenitz 2015-02-27 05:31:55
check_traverse_while_traverse 13fd698a0986a46dbde2f886435cf0313679640f mbusenitz 2015-02-27 05:17:49
fix test 0d8478c8650285983253d655b5254701a6d9302b mbusenitz 2015-02-26 21:03:12
batch test e6f780a6e37191ea0ed22fe35fff421a770860bc mbusenitz 2015-02-26 20:39:03
Squashed 'test/plank/' changes from 09a9867..3962f58 f2f24b430e4b39687cbbc6f0ffcce4d5e08f96de mbusenitz 2015-02-26 20:36:05
master rough pass 8e41bfcd72b69abe79d69e73a1d13f1e2e9b1e39 mbusenitz 2015-02-26 19:42:41
master rename 0822dbbdba16f539d088d3b60320da32f688ebce mbusenitz 2015-02-26 06:11:15
master first pass a15417f304e070121e34272eaedf1e51fce5f1fd mbusenitz 2015-02-26 06:00:11
Squashed 'test/plank/' content from commit 09a9867 486e835d9a925e450abfb6dfce9437e808b5cf0f mbusenitz 2015-02-26 05:29:41
init 4d1b6b27cb5dc364239073fa755a549b817031b9 mbusenitz 2015-02-26 05:29:35
Commit 523b7174ede20ae385ccc131738a32d6de3a412e - test args
Author: mbusenitz
Author date (UTC): 2015-02-27 05:31
Committer name: mbusenitz
Committer date (UTC): 2015-02-27 05:31
Parent(s): 13fd698a0986a46dbde2f886435cf0313679640f
Signer:
Signing key:
Signing status: N
Tree: 956149e309f2fb0dc8dd1fd2862617050dd2ae95
File Lines added Lines deleted
test/src/batch.h 39 0
test/src/main.cpp 3 0
File test/src/batch.h changed (mode: 100644) (index 40ce76d..eb652de)
... ... using namespace std;
4 4 typedef std::function<void()> callback_type; typedef std::function<void()> callback_type;
5 5 typedef control::Batch<callback_type> batch_type; typedef control::Batch<callback_type> batch_type;
6 6
7 void check_traverse_with_arg()
8 {
9 typedef function<void(int)> callback_type;
10 typedef control::Batch<callback_type> batch_type;
11
12 unsigned test_passed(0);
13 batch_type batch;
14
15 auto p( batch.hook( [&](int i){
16 ASSERT( i == 99 );
17 ++test_passed;
18 } ) );
19
20 batch.traverse( 99 );
21
22 ASSERT( test_passed == 1 );
23 FOOTER;
24 }
25
26 void check_traverse_with_args()
27 {
28 typedef function<void(int, int)> callback_type;
29 typedef control::Batch<callback_type> batch_type;
30
31 unsigned test_passed(0);
32 batch_type batch;
33
34 auto p( batch.hook( [&](int i, int j){
35 ASSERT( i == 99 );
36 ASSERT( j == 3 );
37 ++test_passed;
38 } ) );
39
40 batch.traverse( 99, 3 );
41
42 ASSERT( test_passed == 1 );
43 FOOTER;
44 }
45
7 46 void check_traverse_while_traverse() void check_traverse_while_traverse()
8 47 { {
9 48 batch_type batch; batch_type batch;
File test/src/main.cpp changed (mode: 100644) (index 4b5568e..49f2289)
... ... int main(int argc, const char * argv[])
11 11 { {
12 12 check_traverse(); check_traverse();
13 13 check_traverse_while_traverse(); check_traverse_while_traverse();
14 check_traverse_with_arg();
15 check_traverse_with_args();
16
14 17 return 0; return 0;
15 18 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mucbuc/dynamo

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mucbuc/dynamo

Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/dynamo

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main