Add test to check javascript unicode strings.
This commit is contained in:
parent
caa92740d3
commit
04cdde0563
4 changed files with 39 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue