diff options
author | Chad Austin <chad@imvu.com> | 2013-04-15 17:40:16 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:13 +0300 |
commit | 181e6abb2f3abb9c3dc07d769adb84f6bc5982bc (patch) | |
tree | ac50bde1a70e95087d61081597dba21d214bf332 /tests/embind | |
parent | a9539326b89fec17dfe7fb4315eb5d256a1afcf6 (diff) |
cannot pass non-strings to std::string arguments :)
Diffstat (limited to 'tests/embind')
-rwxr-xr-x | tests/embind/embind.test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index fec7145a..6473573a 100755 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -403,6 +403,12 @@ module({ }); }); + test("can't pass integers as strings", function() { + var e = assert.throws(cm.BindingError, function() { + cm.emval_test_take_and_return_std_string(10); + }); + }); + test("non-ascii wstrings", function() { var expected = String.fromCharCode(10) + String.fromCharCode(1234) + |