Add test to check javascript unicode strings.

This commit is contained in:
Oliver Buchtala 2013-01-18 15:33:04 +01:00
commit 04cdde0563
4 changed files with 39 additions and 21 deletions

View file

@ -47,7 +47,8 @@ CPP_TEST_CASES = \
typemap_namespace \
typemap_ns_using \
using1 \
using2
using2 \
javascript_unicode
SKIP_CPP_CASES = @SKIP_CPP_CASES@
SKIP_C_CASES = @SKIP_C_CASES@
@ -94,7 +95,7 @@ run_testcase = \
# Clean
%.clean:
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile javascript_clean

View file

@ -0,0 +1,7 @@
var str = "olé";
var copy = javascript_unicode.copy_string(str);
if (str !== copy) {
print("Error: copy is not equal: original="+str+", copy="+copy);
}