diff options
author | Chad Austin <chad@imvu.com> | 2013-04-10 23:10:26 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:08 +0300 |
commit | bcf017994524b515274344dcf667dc03b8153448 (patch) | |
tree | 95bb8d70d6219ca703cc84a75a7bb39c5631ac60 /tests/embind/embind.test.js | |
parent | ebb2069d804f49b457f6a4349a3136703db60190 (diff) |
verify non-ascii data can be passed through std::string
Diffstat (limited to 'tests/embind/embind.test.js')
-rwxr-xr-x | tests/embind/embind.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 4a8665f4..07f093ea 100755 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -388,6 +388,14 @@ module({ }); }); + BaseFixture.extend("string", function() { + var expected = ''; + for (var i = 0; i < 128; ++i) { + expected += String.fromCharCode(128 + i); + } + assert.equal(expected, cm.get_non_ascii_string()); + }); + BaseFixture.extend("embind", function() { test("value creation", function() { assert.equal(15, cm.emval_test_new_integer()); |