Misc. typos
found via `codespell` and `grep`
This commit is contained in:
parent
3eb41c9beb
commit
60dfa31a67
90 changed files with 155 additions and 155 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Test "Missing identifier for ..." errrors
|
||||
// Test "Missing identifier for ..." errors
|
||||
%module xxx
|
||||
|
||||
#ifdef
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ assert(is_std_string(cobj) and cobj:c_str()=="x") -- check type & value
|
|||
|
||||
test_const_pointer(cobj)
|
||||
|
||||
-- this shouldnt work, but it does
|
||||
-- swig doesnt appear to diff between const object ptrs & object ptrs very well
|
||||
-- this shouldn't work, but it does
|
||||
-- swig doesn't appear to diff between const object ptrs & object ptrs very well
|
||||
test_pointer(cobj) -- this wants an non const object (give it a const one!)
|
||||
|
||||
-- refs are also wrappered as ptrs (unless the correct typemaps are applied)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
require("import") -- the import fn
|
||||
import("newobject2",true) -- import code
|
||||
|
||||
foo1 = newobject2.makeFoo() -- lua doesnt yet support static fns properly
|
||||
assert(newobject2.fooCount() == 1) -- lua doesnt yet support static fns properly
|
||||
foo1 = newobject2.makeFoo() -- lua doesn't yet support static fns properly
|
||||
assert(newobject2.fooCount() == 1) -- lua doesn't yet support static fns properly
|
||||
|
||||
foo2 = newobject2.makeFoo()
|
||||
assert(newobject2.fooCount() == 2)
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ back to this behavior, use: */
|
|||
|
||||
void divide_l(int a, int b, int *OUTPUT, int *OUTPUT);
|
||||
|
||||
/* Multiple values as vectors. By issueing: */
|
||||
/* Multiple values as vectors. By issuing: */
|
||||
%values_as_vector;
|
||||
/* vectors instead of lists will be used. */
|
||||
|
||||
void divide_v(int a, int b, int *OUTPUT, int *OUTPUT);
|
||||
|
||||
/* Multiple values for multiple-value continuations.
|
||||
(This is the most elegant way.) By issueing: */
|
||||
(This is the most elegant way.) By issuing: */
|
||||
%multiple_values;
|
||||
/* multiple values are passed to the multiple-value
|
||||
continuation, as created by `call-with-values' or the
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ return_const_value
|
|||
|
||||
p = return_const_value.Foo_ptr.getPtr();
|
||||
if (p.getVal() != 17)
|
||||
error("Runtime test1 faild. p.getVal()=", p.getVal())
|
||||
error("Runtime test1 failed. p.getVal()=", p.getVal())
|
||||
endif
|
||||
|
||||
p = return_const_value.Foo_ptr.getConstPtr();
|
||||
if (p.getVal() != 17)
|
||||
error("Runtime test2 faild. p.getVal()=", p.getVal())
|
||||
error("Runtime test2 failed. p.getVal()=", p.getVal())
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class check {
|
|||
$parents[]=$c;
|
||||
$c=strtolower(get_parent_class($c));
|
||||
}
|
||||
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierachy:\n %s\n",join("\n ",$parents));
|
||||
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierarchy:\n %s\n",join("\n ",$parents));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ require "threads_exception.php";
|
|||
check::functions(array(test_simple,test_message,test_hosed,test_unknown,test_multi,is_python_builtin));
|
||||
// Check classes.
|
||||
check::classes(array(Exc,Test,threads_exception));
|
||||
// Chek globals.
|
||||
// Check globals.
|
||||
check::globals(array(exc_code,exc_msg));
|
||||
|
||||
$t = new Test();
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class check {
|
|||
$parents[]=$c;
|
||||
$c=strtolower(get_parent_class($c));
|
||||
}
|
||||
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierachy:\n %s\n",join("\n ",$parents));
|
||||
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierarchy:\n %s\n",join("\n ",$parents));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ require "threads_exception.php";
|
|||
check::functions(array(test_simple,test_message,test_hosed,test_unknown,test_multi,is_python_builtin));
|
||||
// Check classes.
|
||||
check::classes(array(Exc,Test,threads_exception));
|
||||
// Chek globals.
|
||||
// Check globals.
|
||||
check::globals(array(exc_code,exc_msg));
|
||||
|
||||
$t = new Test();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import sys
|
|||
if len(sys.argv) >= 2 and sys.argv[1] == "benchmark":
|
||||
# run the benchmark
|
||||
import time
|
||||
k = 1000000 # number of times to excute the functions
|
||||
k = 1000000 # number of times to execute the functions
|
||||
|
||||
t = time.time()
|
||||
a = bytearray(b'hello world')
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import sys
|
|||
|
||||
p = return_const_value.Foo_ptr_getPtr()
|
||||
if (p.getVal() != 17):
|
||||
print "Runtime test1 faild. p.getVal()=", p.getVal()
|
||||
print "Runtime test1 failed. p.getVal()=", p.getVal()
|
||||
sys.exit(1)
|
||||
|
||||
p = return_const_value.Foo_ptr_getConstPtr()
|
||||
if (p.getVal() != 17):
|
||||
print "Runtime test2 faild. p.getVal()=", p.getVal()
|
||||
print "Runtime test2 failed. p.getVal()=", p.getVal()
|
||||
sys.exit(1)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
%module redefined_not
|
||||
|
||||
// These should not emit an Identifer redefined warning
|
||||
// These should not emit an Identifier redefined warning
|
||||
%inline %{
|
||||
typedef unsigned int my_size_t;
|
||||
namespace Std {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ CPP_STD_TEST_CASES += \
|
|||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# Overriden variables
|
||||
# Overridden variables
|
||||
SRCDIR = ../$(srcdir)/
|
||||
|
||||
# Local variables
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ function checkerror(ierr, cmd)
|
|||
if ierr <> 0 then swigtesterror("error " + string(ierr) + " in """ + cmd + """"); end
|
||||
endfunction
|
||||
|
||||
// test container of pointers returned from fonction (expected a list)
|
||||
// test container of pointers returned from function (expected a list)
|
||||
function [classAPtr_list, classAPtr1, classAPtr2] = testCreateContainerPtr(container, value1, value2)
|
||||
classAPtr1 = new_ClassA(value1);
|
||||
classAPtr2 = new_ClassA(value2);
|
||||
|
|
@ -57,7 +57,7 @@ endfunction
|
|||
// computed on the container
|
||||
function testContainerType(container, value_type, value1, value2, ..
|
||||
expected_returned_container, expected_accumulate_value)
|
||||
// test container of basic type returned from fonction
|
||||
// test container of basic type returned from function
|
||||
func = msprintf("ret_%s_%s", value_type, container);
|
||||
if value_type == "string" then
|
||||
cmd = msprintf("c = %s(''%s'', ''%s'');", func, value1, value2);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ IntDeque_push_back(intDeque, 6);
|
|||
avg = average(intDeque);
|
||||
checkequal(avg, 4.0, "average(intDeque)");
|
||||
|
||||
// half shoud return a deque with elements half of the input elements
|
||||
// half should return a deque with elements half of the input elements
|
||||
RealDeque_clear(realDeque);
|
||||
RealDeque_push_front(realDeque, 2.0);
|
||||
RealDeque_push_front(realDeque, 4.0);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
exec("swigtest.start", -1);
|
||||
|
||||
// test matrix passed as output argument from fonction
|
||||
// test matrix passed as output argument from function
|
||||
function test_outMatrix(func, valueType, expectedOutMatrix)
|
||||
funcName = msprintf("out%s%s", valueType, func);
|
||||
cmd = msprintf("outMatrix = %s();", funcName);
|
||||
|
|
@ -13,7 +13,7 @@ function test_outMatrix(func, valueType, expectedOutMatrix)
|
|||
checkequal(outMatrix, expectedOutMatrix, funcName);
|
||||
endfunction
|
||||
|
||||
// test matrix passed as input argument of fonction
|
||||
// test matrix passed as input argument of function
|
||||
function test_inMatrix(func, valueType, inMatrix, expectedInValue)
|
||||
funcName = msprintf("in%s%s", valueType, func);
|
||||
cmd = msprintf("inValue = %s(inMatrix);", funcName);
|
||||
|
|
@ -24,7 +24,7 @@ function test_inMatrix(func, valueType, inMatrix, expectedInValue)
|
|||
checkequal(inValue, expectedInValue, funcName);
|
||||
endfunction
|
||||
|
||||
// test matrixes passed as input and output arguments of fonction
|
||||
// test matrixes passed as input and output arguments of function
|
||||
function test_inoutMatrix(func, valueType, inoutMatrix, expectedInoutMatrix)
|
||||
funcName = msprintf("inout%s%s", valueType, func);
|
||||
cmd = msprintf("inoutMatrix = %s(inoutMatrix);", funcName);
|
||||
|
|
|
|||
|
|
@ -8,15 +8,15 @@ endfunction
|
|||
|
||||
foo = new_Foo();
|
||||
|
||||
checkException('Foo_test_int(foo)', 'Exception (int) occured: 37');
|
||||
checkException('Foo_test_int(foo)', 'Exception (int) occurred: 37');
|
||||
|
||||
checkException('Foo_test_msg(foo)', 'Exception (char const *) occured: Dead');
|
||||
checkException('Foo_test_msg(foo)', 'Exception (char const *) occurred: Dead');
|
||||
|
||||
checkException('Foo_test_multi(foo, 1)', 'Exception (int) occured: 37');
|
||||
checkException('Foo_test_multi(foo, 1)', 'Exception (int) occurred: 37');
|
||||
|
||||
checkException('Foo_test_multi(foo, 2)', 'Exception (char const *) occured: Dead');
|
||||
checkException('Foo_test_multi(foo, 2)', 'Exception (char const *) occurred: Dead');
|
||||
|
||||
checkException('Foo_test_cls(foo)', 'Exception (CError) occured.');
|
||||
checkException('Foo_test_cls(foo)', 'Exception (CError) occurred.');
|
||||
|
||||
delete_Foo(foo);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Space {
|
|||
%template(Bool4False) Space::Bool4<false>;
|
||||
|
||||
|
||||
// Forward declarated templates
|
||||
// Forward declared templates
|
||||
%inline %{
|
||||
namespace Space {
|
||||
template <bool B> struct BoolForward1;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
%inline %{
|
||||
|
||||
// This typedef triggers an inifinite recursion
|
||||
// This typedef triggers an infinite recursion
|
||||
// in the next test1() nd test2() function declarations
|
||||
|
||||
typedef std::complex<double> complex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue