Commit Graph

23 Commits (objectmenu)

Author SHA1 Message Date
Günther Brammer e790d2c327 Remove duplicated stubs for the scriptengine from mape 2016-01-24 02:09:14 +01:00
Günther Brammer 5a570b96f1 Remove now unnecessary stubs from C4ScriptStandaloneStubs 2016-01-24 02:09:14 +01:00
Günther Brammer b7ecc49a02 Remove a bit of dead code from C4Value 2016-01-24 02:09:13 +01:00
Günther Brammer d81c93b7d4 Add a few C4Script tests 2016-01-24 02:09:13 +01:00
Nicolas Hake 4fddda20f9 C4Script: Accept array parameter for Min, Max
Min/Max with array parameter will return the smallest/largest value of
all elements of the array. If any array element is not an integer, nor
convertible to integer, the function will fail.
2016-01-23 13:49:10 +01:00
Nicolas Hake b7cffa5e82 Aul tests: Assert that Translate() warns when a translation is missing
I'm not a huge fan of testing for warnings by hijacking the logging
routines, but right now there's no way to exfiltrate warnings from Aul
any other way, so it'll have to do.

Overriding the logging functions from C4SimpleLog.cpp has the nice
additional advantage that expected runtime errors no longer get written
to stdout - this is okay because we're already checking that an
exception is thrown.
2016-01-23 13:49:09 +01:00
Nicolas Hake 53fe0fa1cc Aul Tests: Move Translate() test stub to predefined functions test
As small as the Translate() test is, it is exercising a predefined
function and not just the Aul engine itself.
2016-01-23 13:49:08 +01:00
Nicolas Hake 24839204ce Tests: Add tests for Min, Max 2016-01-23 13:49:07 +01:00
Nicolas Hake b128f3a0a4 Tests: Split math tests out of base aul test file 2016-01-23 13:49:06 +01:00
Nicolas Hake 8136edb45a Pull tests into main CMake project 2016-01-23 13:49:05 +01:00
Nicolas Hake 7d186516a8 Tests: Move pthread dependency to gtest
The test binaries don't directly use pthread (but gtest does), so the
dependency should be added to gtest instead of the binary itself.
2015-12-13 14:33:02 +01:00
Nicolas Hake a9f93378fa Add some edge case tests for Aul arithmetic
These tests include testing for #1389 "Strange numbers on 64 bit".
2015-12-08 13:17:42 +01:00
Nicolas Hake 184b36d08a Add helper function to create test binaries 2015-12-08 13:17:38 +01:00
Nicolas Hake 2b83c1c778 Tests: Add C4ScriptStandaloneStubs.cpp to test project 2015-12-08 13:17:37 +01:00
Nicolas Hake 3f5efe65ad Tests: Link winmm 2015-02-08 15:05:14 +01:00
Nicolas Hake 849f8fe98d GTest: Also accept fused sources 2015-02-08 15:05:12 +01:00
Nicolas Hake 1a1cecadd4 Update license texts
Some files, most notably ObjC and test cases, hadn't been updated to use
the new license header. Fix this.
2015-02-08 15:05:11 +01:00
Oliver Schneider 3c3621072c cmake: properly removed gtest from the all target 2013-01-30 13:06:22 +01:00
Oliver Schneider c43a682785 tests: Compile gtest from source, add a few new tests
GTest does not ship precompiled binaries anymore. They are now compiled
using the CMakelists.txt from gtest.

Add basic unit tests for C4Value, DirectExec and C4StringTable.
2013-01-29 01:07:22 +01:00
Nicolas Hake d5669964b8 tests: Fix on linux-gcc 2011-10-16 14:17:43 +02:00
Nicolas Hake 6efa0ac05e win32: Correctly read back unicode strings from registry 2011-07-27 17:30:56 +02:00
Nicolas Hake 7a49f22698 Test/win32: Add wchar_t conversion, registry access tests 2011-06-02 22:02:29 +02:00
Nicolas Hake 97f699a005 Search for GTest and add a unit testing project if available
Currently this only tests correct UTF-8 handling.
2011-05-17 18:33:28 +02:00