33 Commits

Author SHA1 Message Date
Zephyr Lykos 2dfb60d8b7 tests: fix vector test on big-endian platforms (#93) 2025-10-08 10:30:48 +02:00
Zephyr Lykos c9daa45b96 tests: make FreeZyanU16 a ZyanMemberProcedure instead of a ZyanMemberFunction 2025-04-25 23:00:36 +02:00
Zephyr Lykos d6d6be334d build: simplify conditions, fix flags not being applied to .cpp 2025-04-25 23:00:36 +02:00
Zephyr Lykos 7afed0ec12 Implement ZyanString example 2025-01-27 01:53:52 +01:00
Zephyr Lykos d511a9b925 Fix build failure on 32-bit 2025-01-27 01:53:52 +01:00
Zephyr Lykos 38d4f0285e Add meson build system support (#75) 2024-09-19 15:02:08 +02:00
Florian Bernd 636bb29945 Remove floats from the project (kernel mode compatibility) (#36)
* Remove `float`s from the project (kernel mode compatibility)

* Bump version to v1.1.0

* Resolve PR comments

* Use integers in assertion

* Fix another comment

* Fix ZYAN_BITSET_BITS_TO_BYTES to use ints

* Don't use EXPECT_FLOAT_EQ in tests

Co-authored-by: Joel Höner <athre0z@zyantific.com>
2021-10-26 07:13:51 +02:00
Joel Höner bbe1b49784 Support for required (non-optional) arguments 2019-07-14 18:52:05 +02:00
Joel Höner 9f513c5be4 Support for reporting error tokens 2019-07-14 18:52:05 +02:00
Joel Höner d07b3e532f More style fixes & shorten error constants 2019-07-14 18:52:05 +02:00
Joel Höner a0ecb1877d Don't use direct vec internal access in tests 2019-07-14 18:52:05 +02:00
Joel Höner 4fb281de55 Final touches for argument parsing 2019-07-14 18:52:05 +02:00
Joel Höner 75825ef3b6 Even more tests and fixes 2019-07-14 18:52:05 +02:00
Joel Höner b0766d4582 More arg-parse tests 2019-07-14 18:52:05 +02:00
Joel Höner 4b2df2f5dd Added some basic tests 2019-07-14 18:52:05 +02:00
Joel Höner 3bfb852ec2 Implemented basic argument parsing (untested) 2019-07-14 18:52:05 +02:00
Joel Höner e6420b3778 Pin gtest version and update tests
- Pinned to latest commit hash as of today
  - Latest tag appears to be broken
- Replace deprecated `INSTANTIATE_TEST_CASE_P` → `INSTANTIATE_TEST_SUITE_P`
2019-07-13 08:05:22 +02:00
Florian Bernd c1141db735 Minor refactorings
- Renamed `ZyanVectorInsertEx` to `ZyanVectorInsertRange`
- Renamed `ZyanVectorDeleteEx` to `ZyanVectorDeleteRange`
2019-04-16 16:05:46 +02:00
Florian Bernd 5380f265a1 Minor refactorings and bugfixes 2019-04-14 16:35:50 +02:00
Florian Bernd 5946d9032c Minor refactorings 2019-04-13 18:30:51 +02:00
flobernd af01b65af8 Improved ZyanVector
- Changed signature of `ZyanVectorGet` to improve performance
- Added `ZYAN_VECTOR_GET` macro that directly returns the value of an element in the vector
2019-02-22 18:49:30 +01:00
flobernd 7686851051 Improved ZyanVector
- API changes:
  - Implemented `ZyanVectorGet` function to directly obtain the value of an element
  - Renamed `ZyanVectorGetElement` to `ZyanVectorGetPointer`
  - Renamed `ZyanVectorGetElementMutable` to `ZyanVectorGetPointerMutable`

- Internal changes:
  - Improved performance of `ZyanVectorFind/Ex` and `ZyanVectorBinarySearch/Ex`
2019-02-21 22:08:30 +01:00
flobernd 7d59ff338d Added ZyanVectorSwapElements function 2019-02-20 22:12:31 +01:00
flobernd 4926aaf436 Fixed compilation as 64-bit target 2019-02-13 23:04:30 +01:00
flobernd 73941e68e2 Fixed compilation as 32-bit target 2019-02-13 22:54:00 +01:00
flobernd 73bf333930 Minor refactorings 2018-11-08 15:16:01 +01:00
flobernd 67f9afc01c Minor refactorings 2018-11-07 23:34:09 +01:00
flobernd ea3d80415a Minor refactorings and bugfixes 2018-08-28 20:10:49 +02:00
flobernd ebafb7cf2b Added ZyanVectorEmplace/ZyanVectorEmplaceEx functions 2018-08-10 02:23:59 +02:00
flobernd 8c6463e9a6 Improved tests 2018-08-08 13:14:17 +02:00
flobernd 2d840be788 Improved tests 2018-08-07 23:09:27 +02:00
flobernd 6a56ea95e5 Improved tests 2018-08-07 11:54:06 +02:00
flobernd d06ca2eba2 Integrated googletest framework 2018-08-01 23:33:58 +02:00