Jason Turner
bbaa6ed76f
Merge pull request #400 from totalgee/to_json_fixes
...
In to_json(), maintain the "type" of empty maps and vectors
2018-02-02 21:33:11 -07:00
Jason Turner
ad606c7cfa
Update to catch2 for MSVC2017 compat
2018-01-19 10:46:37 -07:00
Glen Fraser
3d97c93e49
Add unit test to validate to_json()
2018-01-11 19:44:54 +01:00
Jason Turner
dee2ce5c56
Add failing test for ranged_for with variable
2017-11-30 09:47:20 -07:00
Jason Turner
903454bf05
Merge pull request #290 from stephenberry/develop
...
Adding basic namespace handling
2017-11-21 16:27:40 -07:00
Glen Fraser
79d985d6ff
Fix JSON parsing for floats with negative exponents
...
- also add unit tests to cover some broken (now fixed) cases.
2017-10-24 20:10:50 +02:00
Stephen Berry
a9fc1d492e
Merge branch 'develop' of https://github.com/ChaiScript/ChaiScript into develop
2017-09-05 12:13:29 -05:00
Stephen Berry
3f299333cc
Switched to recursive mutex
...
Removed namespaces_nested_ref.chai
2017-09-05 12:02:11 -05:00
Jason Turner
0f74597139
Limit when coverage happens to only one build target
2017-07-20 15:08:53 -06:00
Jason Turner
36e61dec0a
Fix defaults for dynload options
2017-06-06 14:59:05 -06:00
Jason Turner
76c7712507
Test custom exception handling #351
2017-06-05 19:36:40 -06:00
Jason Turner
bdd0a12bb7
ChaiScript can only support static in non-threading mode
2017-05-31 14:18:30 -06:00
Jason Turner
bd736eddec
Deprecate GLOBAL #247
2017-05-30 11:33:12 -06:00
Jason Turner
252ea8072d
Add failing test for const return type #340
2017-05-30 08:29:43 -06:00
Jason Turner
0f9d9cae4a
Merge pull request #332 from ftk/develop
...
Ability to disable module loading support at compile time
2017-03-21 12:55:30 -07:00
Jason Turner
468d65a661
Merge pull request #336 from totalgee/from_json_fix
...
Handle negative numbers in JSONParse::parse_number
2017-03-21 12:21:26 -07:00
Jason Turner
204faa82c1
Add failing static chaiscript test
2017-03-21 11:58:21 -07:00
Glen Fraser
491b95099d
In JSONParser::parse_number(), only allow a single '-' at start
...
- also, don't allow multiple '.' decimal points. Add unit tests to
cover these cases.
2017-03-14 13:01:09 +01:00
Glen Fraser
561c5bc981
Handle negative numbers in JSONParse::parse_number
...
- fix issue #334 , where negative numbers loaded from JSON were being
parsed as 0.
- add unit tests to cover these cases.
2017-03-14 12:01:51 +01:00
ftk
f53a1ed951
Fix compilation of multithreaded_test
2017-03-11 15:09:55 +03:00
Jason Turner
283785faaf
Add PVS Studio and address some issues it found
2017-02-22 15:18:56 -07:00
Jason Turner
c0c0bd3172
Address warning from MSVC /analyze
2017-02-22 14:04:56 -07:00
Jason Turner
40fb8d257e
Fix warnings from MSVC
2017-02-22 13:55:02 -07:00
Jason Turner
f5f6ddf219
Disable tests on MSVC for broken literal handling
2017-02-20 13:28:31 -07:00
Jason Turner
077c93ab27
Fix/enhance unique_ptr support
2017-02-04 09:14:07 -08:00
Gabriel Aubut-Lussier
2549b4e983
Add test to call base class methods through std::unique_ptr<derived>.
2017-02-03 23:19:25 -05:00
Jason Turner
2ce155237d
Add test for unique_ptr returned from function
2017-02-03 18:55:58 -08:00
Jason Turner
dca3ce4ea6
Enhance testing of integer literals
...
* enable the ability to check a boxed_number conversion
* fix integer_literal_test to pass on MacOS
2017-02-02 15:07:37 -07:00
Jason Turner
ca7d4ab734
Add test for calling method of unique_ptr var
2017-02-02 13:17:59 -08:00
Jason Turner
1499061f86
Add check for negate conversion to bool
...
Check for #321
2017-02-02 08:06:41 -08:00
Jason Turner
24352c62e8
Some clang specific fixes / warnings
2017-02-02 08:00:57 -08:00
Jason Turner
d8d7bc79b7
Enhance number parsing tests
2017-02-01 09:07:40 -08:00
Jason Turner
3e04210027
Add more integer literal tests / fix neg test
...
Addresses #322
2017-02-01 07:02:18 -08:00
Jason Turner
efd37a7071
Add some more integer literal tests
2017-01-31 17:05:53 -08:00
Jason Turner
e7a6b2306c
Add tests for parsing of neg numbers
2017-01-31 15:30:38 -08:00
Jason Turner
94fb7c2453
Add test for explicitly capturing "this"
2017-01-31 13:24:53 -08:00
Jason Turner
51663df1ba
Demonstrate workaround for pointer to ref member
...
closes #302
2016-12-06 14:51:00 -07:00
Jason Turner
624c7c435b
Add unit test for #302
2016-12-06 14:26:10 -07:00
Jason Turner
cf89bdd804
Update release notes, add chai type fun conversion test
2016-12-06 14:15:39 -07:00
Jason Turner
fb7f8f194c
Add support for r-value parameters and unique_ptr
...
Notes
* Due to the limitations for how Boxed_Value is handled
the unique_ptrs must still be wrapped in a shared_ptr
* However, this caveat does not directly affect the user
2016-12-05 12:07:56 -07:00
Jason Turner
359897a442
Flesh out parser and tracer usage cases
2016-10-28 13:36:10 -06:00
Jason Turner
332a62769b
Merge branch 'release-5.x' into develop
2016-10-28 10:57:55 -06:00
Jason Turner
a38b254a98
Only allow class in top level scope
...
* Throw error if class is in unexpected place
* Allow catching of `eval_error` from inside of script
closes #297
2016-10-28 10:56:12 -06:00
Jason Turner
77231461ca
Add test for class inside of scope
...
Addresses #297
2016-10-28 09:01:40 -06:00
Jason Turner
eefd50a6bc
Merge branch 'release-5.x' into develop
2016-10-26 14:05:28 -06:00
Jason Turner
9f30d84f39
Add conversion to bool tests as conditionals
2016-10-26 12:29:30 -06:00
Jason Turner
0fe78f7ba5
Make sure to not break non-basic interface
2016-10-26 08:47:49 -06:00
Stephen Berry
d61e322c1d
Added unit tests for namespaces.
...
These demonstrate the global scope of namespaces, defining functions and variables within namespaces, and namespace nesting by copy or reference.
2016-10-18 08:57:51 -05:00
Jason Turner
7d9e1b3af7
Add ability to disable loading external files
...
* Options are passed to ChaiScript constructor
* load_module / eval_file / use can be disabled
from script context
2016-10-17 20:51:15 -06:00
Jason Turner
c97a69537d
Add ability to get current script context
...
closes #277
2016-10-13 20:44:13 -06:00