Rob Loach
2951ce4a7a
Update catch.hpp to v2.13.9
...
Fixes #619
2025-07-28 09:33:41 -04:00
FellowTraveler
0870cb5a3a
Add C++20 support
...
ChaiScript now successfully builds on my Mac with C++20, and passes 100% of the unit tests.
2023-06-18 06:42:51 -05:00
Glen Fraser
5722a5177d
Fix crash with out of bounds index (issue #572 )
2021-07-08 18:55:36 +02:00
Bernd Amend
cff6a0aced
change .clang-format and reformat code with clang-format 11
...
I initially tried to use the existing .clang-format file,
but it does not match the code style (at least with clang-format 11)
and the formatting is not consistent across files.
Therefore, I decided to rewrite the .clang-format with some personal
preferences.
Used command
find . -iname "*.hpp" -o -iname "*.cpp" | xargs clang-format -i -style=file
2021-05-24 10:44:15 +02:00
Bernd Amend
a4fd5371bd
fix handling of $ in strings ChaiScript#553
2021-05-23 12:05:33 +02:00
Bernd Amend
55ec76fd39
fix testcase "Test unicode matches C++"
2021-05-22 23:54:18 +02:00
Bernd Amend
cf7821cb1e
fix ChaiScript#537
2021-05-22 18:45:12 +02:00
Bernd Amend
5ff3679811
fix u8"" compilation error in g++11 with -std=c++20
2021-05-22 18:45:12 +02:00
Bernd Amend
e8e47173fb
fix a couple of g++s -Wnoexcept warnings
2021-05-22 18:45:08 +02:00
Bernd Amend
c4e1e1965e
remove not required ";"
2021-05-22 14:09:24 +02:00
Bernd Amend
2b3bddb02d
replace typedef with using
2021-05-22 14:04:04 +02:00
Bernd Amend
c26fd14953
remove else after return
2021-05-22 13:55:04 +02:00
Bernd Amend
180a6d4a1c
update catch to version 2.13.6
2021-05-22 13:18:49 +02:00
Bernd Amend
52a9fa47c1
replace std::vector::push_back with emplace_back
2021-05-22 13:18:32 +02:00
draghan
0a3bc48788
Add unit test covering issue #481
...
Implemented unit test which is validating whether a lambda from
Chaiscript could return a boolean value without throwing any exception.
The same test case is checking whether lambda with boolean return value
could be called peacefully from Chaiscript.
2021-03-27 21:17:55 +01:00
Glen Fraser
cb9a8587b6
Remove MSVC special case in 'Object copy counts' unit test
2020-09-04 11:45:08 +02:00
Jason Turner
c737f2419b
Merge pull request #453 from AlekMosingiewicz/error_on_double_conversion
...
Error on double conversion
2018-08-15 13:33:13 -06:00
Jason Turner
5db87a9175
Merge branch 'release-6.x' into develop
2018-08-15 13:13:44 -06:00
Jason Turner
44dab4d45c
Deal with returning of & to * types
2018-08-15 13:10:23 -06:00
Jason Turner
4be5e876b8
Add failing test for returning of & to *
2018-08-15 11:19:09 -06:00
Alek Mosingiewicz
a254e11286
Make information on source and target types in Type Conversion
...
Exception public.
2018-08-13 17:57:38 +02:00
Alek Mosingiewicz
27bee4a266
Bypass the mutex problem when looking for conversion, automatic
...
test.
2018-08-10 17:29:46 +02:00
Jason Turner
07fdb3bf6e
Remove backward compatibility tests
2018-06-03 16:48:03 -06:00
Jason Turner
d0d08d2ed9
Merge branch 'best_practices' into develop
2018-06-03 16:40:29 -06:00
Jason Turner
aa61df941b
Merge pull request #420 from StanEpp/c++17
...
Add support for chained dot calls.
2018-06-03 15:47:05 -06:00
Jason Turner
a880319db8
Merge branch 'develop' into best_practices
2018-05-30 08:30:29 -06:00
Jason Turner
d5d5561d74
Add failing test for lifetime with ranged-for loop
...
References: #392
2018-05-29 08:03:59 -06:00
Jason Turner
98c362d038
Properly report which file failed to be loaded
...
closes #437
2018-05-29 07:45:43 -06:00
Jason Turner
61dfb22af8
Merge pull request #439 from AlekMosingiewicz/handle-bom-in-script
...
Handle BOM in the beginning of the script
2018-05-26 14:08:29 -06:00
Jason Turner
73f177c73e
Move to official catch cmake support, update catch
...
This is an effort to fix the issues on Appveyor with newer versions of
CMake. Will have to double check that it does not break Travis
2018-05-26 09:26:13 -06:00
Jason Turner
805e7c0917
Fix up some error handling
2018-05-25 14:33:17 -06:00
Alek Mosingiewicz
67dcd3e8d8
Test case for BOM in user-provided string.
2018-05-22 17:12:14 +02:00
Alek Mosingiewicz
df6bc8f9b5
Add missing test cases.
2018-05-22 17:07:32 +02:00
Alek Mosingiewicz
be29b0a193
Merge branch 'develop' into handle-bom-in-script
2018-05-22 05:00:41 +02:00
Alek Mosingiewicz
b70a9e7a61
Non-ASCII characters now in random positions in test; test renamed.
2018-05-21 17:12:11 +02:00
Alek Mosingiewicz
efbebee9da
Throw exception when user-provided input contains BOM.
2018-05-13 10:25:04 +02:00
Alek Mosingiewicz
1e8f7f9fa5
Simplify BOM test.
2018-05-10 18:40:56 +02:00
Alek Mosingiewicz
1d782338c9
Cover skipping BOM with test.
2018-05-10 18:23:39 +02:00
Jason Turner
06191646d2
Merge pull request #418 from ChaiScript/apply_unicode_patches
...
Apply unicode patches
2018-05-08 09:08:25 -06:00
Tomas Zeman
c2a3518eb0
Fix CHAISCRIPT_NO_THREADS macro redefinition warning
...
Appeared when compiling with MULTITHREAD_SUPPORT_ENABLED=FALSE.
2018-03-10 19:23:06 +01:00
Stan
be5709ab5c
Add support for chained dot calls.
2018-03-04 22:49:36 +01:00
Jason Turner
258cb23dda
Further fixes for compiled tests for VS 2015
2018-03-02 15:40:22 -07:00
Jason Turner
476a752a08
Fix last merge
2018-03-02 15:09:52 -07:00
Jason Turner
2818ec67df
Merge remote-tracking branch 'origin/develop' into apply_unicode_patches
2018-03-02 15:01:41 -07:00
Jason Turner
2e9512c6b8
Adjust unicode tests for MSVC
2018-03-02 08:54:27 -07:00
Jason Turner
12797c0a03
Add C++ tests to verify strings match
...
Re #415
2018-03-02 08:01:03 -07:00
Jason Turner
1a9165f7fc
Normalize on C++'s standards for \u and \U
2018-03-02 07:45:24 -07:00
Jason Turner
1b9027a24f
Fix handling of 32 bit unicode character escapes
2018-03-01 17:03:50 -07:00
Jason Turner
1311c97c49
Fix unit tests for unicode to be consistent with how it should work
...
Addresses #415
2018-03-01 12:57:56 -07:00
Jason Turner
d5faaeca1a
Add failing unicode test from #415
2018-03-01 11:20:22 -07:00