diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2024-09-05 14:20:50 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2024-09-05 14:20:50 +0200 |
| commit | 65e5812f5b88989ea3ce4ac232f882004c60cc73 (patch) | |
| tree | 996dad7bde7338ed95835cf8a39d5520b58c8fa0 /test/datastructures/stlRope.cpp.awk | |
| parent | 1abc08be606b7379bb1b9c5150bf73841a4b9c66 (diff) | |
more tests
Diffstat (limited to 'test/datastructures/stlRope.cpp.awk')
| -rw-r--r-- | test/datastructures/stlRope.cpp.awk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/datastructures/stlRope.cpp.awk b/test/datastructures/stlRope.cpp.awk new file mode 100644 index 0000000..e19b8fd --- /dev/null +++ b/test/datastructures/stlRope.cpp.awk @@ -0,0 +1,27 @@ +/rope<int> v;/ { + print "void test() {" + print "ll num = 5;" + print "ll start = 2;" + print "ll length = 4;" + print "ll offset = 3;" +} +/v.push_back(num);/ { + print "v.push_back(0);" + print "v.push_back(1);" + print "v.push_back(2);" + print "v.push_back(3);" + print "v.push_back(4);" +} +/rope<int> sub/ { + print "v.push_back(6);" + print "v.push_back(7);" +} +/for\(auto it/ { + print "vector<int> got, expected = {0,1,6,2,3,4,5,7};" +} +END { + print " got.push_back(*it)" + print "if (got != expected) cerr << \"error\" << endl;" + print "}" +} +{ print } |
