74 Commits

Author SHA1 Message Date
Tulio Leao
1ebaac86be Add tests to iterate on all .parkpatch files 2024-08-19 19:52:14 -03:00
Aaron van Geffen
9e206d5528 Remove dependency on StringIds.h from Localisation.h (#22011)
* Remove dependency on StringIds.h from Localisation.h

* Include Language.h in UTF8.cpp for function declarations

* Rename tests/Localisation.cpp to tests/LocalisationTest.cpp
2024-05-10 19:14:05 +00:00
Duncan
1ec62e44bb Add missing string test (#19837) 2023-04-05 21:28:50 +01:00
duncanspumpkin
b9ce206044 Move to pretest discovery 2023-03-30 08:31:59 +01:00
duncanspumpkin
bde48f0b25 Fix running the tests 2023-03-29 22:05:21 +01:00
duncanspumpkin
aee3f17b93 Fix cmake tests compiling 2023-03-29 22:04:13 +01:00
Josh Trzebiatowski
3b82774df1 Rename snake_case methods/classes under tests (#19205)
* Remove snake_case method names in sawyercoding_test.cpp

* Rename sawyercoding_test.cpp to SawyerCodingTest.cpp

* Rename sawyercoding_test.cpp to SawyerCodingTest.cpp
2023-01-18 06:06:54 +00:00
Michał Janiszewski
0f11246a81 Sync cmake version required for tests to main project (#18766)
b7a1db6e69/CMakeLists.txt (L2)
2022-12-17 18:33:01 +01:00
Michał Janiszewski
1670aa759f Remove support for vendored gtest
Originally implemented only to satisfy the (somewhat dubious) claim of
gtest about the necessity to provide your own copy. The original claim
got removed here:
5437926b22
2022-05-09 23:04:53 +02:00
Michał Janiszewski
d81b36e16f Update GoogleTest version 2022-05-08 22:22:03 +02:00
ZehMatt
cd43cab999 Add tests for EnumMap 2021-07-29 17:07:49 +03:00
Ted John
1523597b50 Fix test failures 2021-02-16 20:25:11 +00:00
Ted John
92fcdfbd9b Fix GCC compiler errors 2020-11-27 18:54:57 +00:00
Hielke Morsink
f0c1ea1d37 Split declarations and definitions to improve compile times when editing (#13332)
* Split FileStream declarations and definitions

* Split JobPool declarations and definitions

* Split StringBuilder declarations and definitions

* Split StringReader declarations and definitions

* Split ZoomLevel declarations and definitions

* Fix missing include in FileClassifier.cpp

* Remove pragma once from source files

* Fix missing include in StringBuilder.h

* Update Xcode project

* Fix compilation of tests

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-11-07 12:42:04 +00:00
Tulio Leao
bace4d62f8 Specify SYSTEM includes on CMAKE builds 2020-10-09 01:28:34 -03:00
Michael Steenbeek
6b9f83a5a4 Fix compilation on Linux and macOS 2020-09-18 19:46:12 +02:00
Gymnasiast
4ff77ebc35 Split RTL implementations to files; add preprocessor guards 2020-09-18 19:46:12 +02:00
Michał Janiszewski
13842198fa Disable HTTP for targets that don't need it (#12375) 2020-07-25 09:09:15 +02:00
Breno Rodrigues Guimarães
ab53ddf59f Avoid fast-forwarding peep into the ride
The code being removed in the patch tries to fast forward a peep into the ride when it is the second peep for a vehicle that is used in pairs. Problem is that funds checking does not happen, so it happens that a peep may pay against its will.
Lets say a rich peep enters in line and a poor peep enters in line right after.
If the price of the ride is such that the rich peep can pay and the poor peep can't, it will be dragged into the ride because funds checking only happened for the first.
The second part of the patch just adjusts we consider the vehicle a full car if the second position is filled.

Add test to verify that a peep is not dragged into a ride it can't pay

This test puts two peeps in a Ferris Wheel. The first peep is rich and the second peep is poor. When they are both in line, the ride price is raised so that the poor peep can't pay.
Make sure the poor peep turns back and leaves the ride.

During development, a mistake in the logic would have broken all rides other than ferris wheels in a way that multiple guests could enter the same car.
Also add a test to make sure that is never broken.
2020-04-25 18:27:33 -03:00
Matt
8243c2b64e Update CMakeLists.txt 2019-10-20 13:49:39 +02:00
Matt
45452ad2c8 Run replay tests with network disabled 2019-08-12 18:04:08 +02:00
Tom Lankhorst
744f2225ed Write platform tests 2019-05-11 13:54:16 +01:00
Matt
15838861cd Add load and save test. 2019-03-02 13:11:08 +01:00
Tom Lankhorst
94758bccf6 Link with platform libraries 2019-02-05 20:17:14 +01:00
Tom Lankhorst
ce6e08c633 Introduce SET_CHECK_CXX_FLAGS 2019-02-03 23:32:51 +01:00