[Scummvm-git-logs] scummvm master -> fd81f32d6ab5e7303d9d9cb632c3ce1ee0baef43
SupSuper
supsuper at gmail.com
Fri Feb 12 02:50:50 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
fd81f32d6a TESTS: Use getValOrDefault
Commit: fd81f32d6ab5e7303d9d9cb632c3ce1ee0baef43
https://github.com/scummvm/scummvm/commit/fd81f32d6ab5e7303d9d9cb632c3ce1ee0baef43
Author: SupSuper (supsuper at gmail.com)
Date: 2021-02-12T02:50:34Z
Commit Message:
TESTS: Use getValOrDefault
Changed paths:
test/common/hashmap.h
diff --git a/test/common/hashmap.h b/test/common/hashmap.h
index f54c65b801..8131322afd 100644
--- a/test/common/hashmap.h
+++ b/test/common/hashmap.h
@@ -124,13 +124,13 @@ class HashMapTestSuite : public CxxTest::TestSuite
container[4] = 96;
// We take a const ref now to ensure that the map
- // is not modified by getVal.
+ // is not modified by getValOrDefault.
const Common::HashMap<int, int> &containerRef = container;
- TS_ASSERT_EQUALS(containerRef.getVal(0), 17);
- TS_ASSERT_EQUALS(containerRef.getVal(17), 0);
- TS_ASSERT_EQUALS(containerRef.getVal(0, -10), 17);
- TS_ASSERT_EQUALS(containerRef.getVal(17, -10), -10);
+ TS_ASSERT_EQUALS(containerRef.getValOrDefault(0), 17);
+ TS_ASSERT_EQUALS(containerRef.getValOrDefault(17), 0);
+ TS_ASSERT_EQUALS(containerRef.getValOrDefault(0, -10), 17);
+ TS_ASSERT_EQUALS(containerRef.getValOrDefault(17, -10), -10);
}
void test_iterator_begin_end() {
More information about the Scummvm-git-logs
mailing list