12345678 |
- Describe(get_last_array_item)
- {
- It(test1){Assert::That(getLastItem((int[]){1, 2, 3}, 3), Equals(3));}
- It(test2){Assert::That(getLastItem((int[]){1, 2, 3, 56, 87, 23, 65, 45}, 8), Equals(45));}
- It(test3){Assert::That(getLastItem((int[]){1}, 1), Equals(1));}
- It(test4){Assert::That(getLastItem((int[]){0}, 1), Equals(0));}
- It(test5){Assert::That(getLastItem((int[]){-1, 3, 4, -45, -10}, 5), Equals(-10));}
- };
|