mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Tests: Silence some intentional errors
Also fix printing messages in ClassDB test.
This commit is contained in:
parent
daa1220a86
commit
62423b691e
10 changed files with 40 additions and 25 deletions
|
|
@ -38,7 +38,6 @@
|
|||
namespace TestHashSet {
|
||||
|
||||
TEST_CASE("[HashSet] Insert element") {
|
||||
print_line("SMALL BEGIN MEM: ", Memory::get_mem_usage());
|
||||
HashSet<int> set;
|
||||
HashSet<int>::Iterator e = set.insert(42);
|
||||
|
||||
|
|
@ -47,7 +46,6 @@ TEST_CASE("[HashSet] Insert element") {
|
|||
CHECK(set.has(42));
|
||||
CHECK(set.find(42));
|
||||
set.reset();
|
||||
print_line("SMALL END MEM: ", Memory::get_mem_usage());
|
||||
}
|
||||
|
||||
TEST_CASE("[HashSet] Insert existing element") {
|
||||
|
|
|
|||
|
|
@ -291,8 +291,10 @@ TEST_CASE("[Vector] Slice") {
|
|||
CHECK(slice6[1] == 3);
|
||||
CHECK(slice6[2] == 4);
|
||||
|
||||
ERR_PRINT_OFF;
|
||||
Vector<int> slice7 = vector.slice(5, 1);
|
||||
CHECK(slice7.size() == 0);
|
||||
CHECK(slice7.size() == 0); // Expected to fail.
|
||||
ERR_PRINT_ON;
|
||||
}
|
||||
|
||||
TEST_CASE("[Vector] Find, has") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue