mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
This commit is contained in:
parent
5133fdd1e2
commit
584299cf94
1 changed files with 0 additions and 8 deletions
|
@ -29,8 +29,6 @@ class Base64Test : public TestCase
|
||||||
char* out_next = out;
|
char* out_next = out;
|
||||||
std::codecvt_base::result res = cvt->out(state, in, in+3, in_next, out, out+10, out_next);
|
std::codecvt_base::result res = cvt->out(state, in, in+3, in_next, out, out+10, out_next);
|
||||||
|
|
||||||
// delete cvt;
|
|
||||||
|
|
||||||
assertEquals(std::codecvt_base::ok, res);
|
assertEquals(std::codecvt_base::ok, res);
|
||||||
assertEquals(4, (out_next-out));
|
assertEquals(4, (out_next-out));
|
||||||
assertEquals('#', out[4]);
|
assertEquals('#', out[4]);
|
||||||
|
@ -50,8 +48,6 @@ class Base64Test : public TestCase
|
||||||
char* out_next = out;
|
char* out_next = out;
|
||||||
std::codecvt_base::result res = cvt->out(state, in, in+4, in_next, out, out+10, out_next);
|
std::codecvt_base::result res = cvt->out(state, in, in+4, in_next, out, out+10, out_next);
|
||||||
|
|
||||||
// delete cvt;
|
|
||||||
|
|
||||||
assertEquals(std::codecvt_base::ok, res);
|
assertEquals(std::codecvt_base::ok, res);
|
||||||
assertEquals(8, (out_next-out));
|
assertEquals(8, (out_next-out));
|
||||||
assertEquals('#', out[8]);
|
assertEquals('#', out[8]);
|
||||||
|
@ -71,8 +67,6 @@ class Base64Test : public TestCase
|
||||||
char* in_next = in;
|
char* in_next = in;
|
||||||
std::codecvt_base::result res = cvt->in(state, out, out+4, out_next, in, in+10, in_next);
|
std::codecvt_base::result res = cvt->in(state, out, out+4, out_next, in, in+10, in_next);
|
||||||
|
|
||||||
// delete cvt;
|
|
||||||
|
|
||||||
assertEquals("ABC", std::string(in, in_next));
|
assertEquals("ABC", std::string(in, in_next));
|
||||||
assertEquals(3, (in_next-in));
|
assertEquals(3, (in_next-in));
|
||||||
assertEquals('#', in[3]);
|
assertEquals('#', in[3]);
|
||||||
|
@ -92,8 +86,6 @@ class Base64Test : public TestCase
|
||||||
char* in_next = in;
|
char* in_next = in;
|
||||||
std::codecvt_base::result res = cvt->in(state, out, out+8, out_next, in, in+10, in_next);
|
std::codecvt_base::result res = cvt->in(state, out, out+8, out_next, in, in+10, in_next);
|
||||||
|
|
||||||
// delete cvt;
|
|
||||||
|
|
||||||
assertEquals(std::codecvt_base::ok, res);
|
assertEquals(std::codecvt_base::ok, res);
|
||||||
assertEquals(4, (in_next-in));
|
assertEquals(4, (in_next-in));
|
||||||
assertEquals('#', in[4]);
|
assertEquals('#', in[4]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue