Chris Thrasher
a886fddbdb
Add tests for sf::OutputSoundFile
2025-02-06 00:03:25 -07:00
Chris Thrasher
4c632e5775
Revamp sf::String
tests
2025-02-05 14:04:44 -07:00
Chris Thrasher
505fe43d5a
Use Unicode literals
2025-02-05 14:04:44 -07:00
Chris Thrasher
52ef7c9955
Test loading sf::SoundBuffer
with non-ASCII filenames
2025-02-03 05:37:25 -07:00
Chris Thrasher
594eb408cb
Test opening sf::Music
with non-ASCII filenames
2025-02-03 05:37:25 -07:00
Chris Thrasher
645796f7fb
Reenable exception printouts when tests fail
...
This option disables detailed exception information when an exception
is thrown in the tests.
2025-02-03 05:37:25 -07:00
Chris Thrasher
a45c4ecbcd
Test opening sound files with non-ASCII filenames
2025-02-02 16:01:12 -07:00
Chris Thrasher
fd93e848f7
Test sf::FileInputStream::open
with non-ASCII filepaths
2025-02-02 15:40:21 -07:00
Chris Thrasher
955b1ca541
Test for trivial move operations
2025-01-31 15:59:14 -07:00
Chris Thrasher
aee8707b1b
Test loading shaders with non-ASCII filenames
2025-01-31 08:51:25 -07:00
Chris Thrasher
0a2e9ac340
Ensure sf::Image
remains unchanged after an unsuccessful load
2025-01-31 05:54:22 -07:00
Chris Thrasher
355df11d09
Harden copyability tests to test for triviality
2025-01-30 17:33:28 -07:00
FRex
f7e904172f
Add tests for Unicode filenames with sf::Image
#647
2025-01-30 10:16:03 -07:00
kimci86
4c0b5b3df9
Implement support for references to handlers and function pointers
2025-01-27 12:21:41 -07:00
kimci86
efb207c849
Check that all WindowBase::handleEvents arguments handle some events
2025-01-27 12:21:41 -07:00
kimci86
37c87ee11e
Test Event::visit with move-only visitor
2025-01-25 13:10:56 -07:00
vittorioromeo
18393ea5cb
Add non-const
overload of Event::visit
2025-01-22 18:03:00 +01:00
Chris Thrasher
08bfae34e7
Fix build errors when compiling in C++20 mode
...
C++20 removes the ability to stream char32_t characters.
This is the error I get when setting CMAKE_CXX_STANDARD
to 20.
/Users/thrasher/Projects/sfml/test/System/String.test.cpp:32:52: error: overload resolution selected deleted operator '<<'
32 | stream << "[\\x" << std::uppercase << std::hex << character << ']';
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include/c++/v1/ostream:1009:31: note: candidate function [with _Traits = std::char_traits<char>] has been explicitly deleted
1009 | basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, char32_t) = delete;
| ^
2025-01-20 11:27:43 +00:00
Lukas Dürrenberger
68ce027b2e
Update Catch2 to v3.8.0
2025-01-14 14:34:19 +00:00
Lukas Dürrenberger
b56604c940
Use approximation when comparing floats in tests
2025-01-08 11:33:40 +00:00
Chris Thrasher
796592edae
Add non-const overload of sf::Event::getIf
2024-12-29 20:50:38 -06:00
Lukas Dürrenberger
328f38553e
Update SFML version to 3.1.0
2024-12-21 11:28:47 -06:00
James Cowgill
ccda2659d4
Store IpAddress::m_address in host byte order
...
This changes the ordering of `IpAddress` objects to be lexographical
which is more intuitive, and it fixes unit test failures on big-endian
systems.
2024-12-08 23:20:43 +01:00
binary1248
248fd6dda8
Build dependency libraries instead of bundling pre-built binaries.
2024-12-04 23:52:24 +01:00
Chris Thrasher
ae87def93e
Use char32_t
for UTF-32 characters
...
This is probably an oversight from https://github.com/SFML/SFML/pull/2480
2024-11-30 18:28:34 -05:00
Chris Thrasher
51e38f51d4
Add tests for sf::Utf
2024-11-28 17:57:05 -05:00
Chris Thrasher
97541c6244
Add more tests for sf::SoundStream
2024-11-25 11:50:43 -07:00
Chris Thrasher
eec0ece713
Add missing sf::SoundSource
tests
2024-11-24 15:21:33 -07:00
Chris Thrasher
e21ba4dc95
Add more robust tests for sf::Music::setLoopPoints
2024-11-12 00:43:59 -07:00
Chris Thrasher
8758649b5d
Add tests for sf::Listener
2024-11-01 13:51:06 -06:00
Chris Thrasher
18eb48b13e
Disallow C-style arrays
2024-10-17 21:40:41 -06:00
Lukas Dürrenberger
ecb945b341
Use explicit constructors when implicit construction isn't wanted
2024-10-03 22:43:57 -06:00
vittorioromeo
816855d13f
Remove sf::Vector2<T>::Unit[XY]
2024-10-03 20:51:09 -06:00
ZXShady
de9286c11f
Use explicit conversion operator instead of explicit constructor
...
I also added a type trait test to check whether the conversion operator is marked explicit.
this change has the advantage of being clearer imo as it is a conversion operator for conersions not a constructor.
and also it allows users to take the address of convesion operator which I don't know if someone might find that useful.
2024-10-02 00:15:54 +02:00
Chris Thrasher
c8cf84511d
Fix clang-tidy-19 errors
2024-09-24 18:42:31 -06:00
Lukas Dürrenberger
6591c59504
Add window create functions without style specifier
...
This brings the create() functions inline with the constructor overloads
for WindowBase, Window, and RenderWindow
2024-09-16 12:05:59 -04:00
Chris Thrasher
ab109cd3cd
Use ON
and OFF
for CMake booleans
...
CMake supports a number of strings for truthy and falsey values.
ON/OFF and TRUE/FALSE are the most popular but 1/0 is also supported.
This is mostly a style choice but I'm inclined to believe that ON/OFF
is the most popular option and I'm generally in favor of style
choices that better align with the community at large.
2024-09-11 14:36:13 -06:00
Lukas Dürrenberger
9f52cfec39
Change spelling of anti-aliasing
2024-09-09 18:37:00 -06:00
Lukas Dürrenberger
265a0cb03f
Rename Vector2 & Vector3 functions to better fit the naming convention
2024-09-08 12:09:32 -06:00
Chris Thrasher
74dfd76b25
Pass sf::Vector2<T>
by value in test code
2024-09-01 17:51:54 +01:00
Chris Thrasher
27943ea774
Disallow constructing sf::String
from std::nullptr_t
2024-08-30 09:55:55 -06:00
Chris Thrasher
4a463ec136
Throw custom sf::Exception
type
2024-08-25 12:17:49 -06:00
CosminPerRam
6a94997ac9
chore: update catch2 from 3.6.0 to 3.7.0
2024-08-15 08:54:23 +01:00
Michal Tabaszewski
8096ba24fc
Rename getLoop() to isLooping() and setLoop() to setLooping()
2024-08-08 15:01:28 -06:00
binary1248
e185f6d53e
Replace factory functions with throwing constructors
2024-08-08 09:19:32 -06:00
binary1248
698f265277
(Re-)Introduce default constructors and load/open member functions for resource objects that can be reused.
2024-08-08 09:19:32 -06:00
Chris Thrasher
dffdaa52a7
Pass sf::Color
s by value
2024-07-31 09:25:21 -06:00
Chris Thrasher
b50f62da43
Test constexpr construction of aggregates
2024-07-27 17:27:39 -06:00
ZXShady
8c895fd7e1
Pass sf::IpAddress
by value
...
`sf::IpAddress` is a wrapper around `std::uint32_t` and should be passed by value
2024-07-27 15:53:03 -06:00
Chris Thrasher
0831f055ce
Require that sf::WindowBase::handleEvents
receives at least one argument
2024-07-21 11:59:05 -06:00