Misc. typos

found via `codespell` and `grep`
This commit is contained in:
luz.paz 2018-05-14 11:00:52 -04:00 • committed by luz paz
commit 60dfa31a67
90 changed files with 155 additions and 155 deletions

View file

@ -29,7 +29,7 @@ CPP_STD_TEST_CASES += \
include $(srcdir)/../common.mk
# Overriden variables
# Overridden variables
SRCDIR = ../$(srcdir)/
# Local variables

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);