Showing the changes to src/test (1 of 6 files). Show all
Unified · Split
| @@ -0,0 +1,11 @@ | |||
| 1 | [1,2,3,4,5,6] @=> int a[]; | ||
| 2 | [1,2,3,4,5,6] @=> int b[]; | ||
| 3 | |||
| 4 | b.reverse(); | ||
| 5 | |||
| 6 | // test b is the reverse of a | ||
| 7 | for (int i; i < a.size(); i++) { | ||
| 8 | if (a[i] != b[-i-1]) me.exit(); | ||
| 9 | } | ||
| 10 | |||
| 11 | <<< "success" >>>; | ||