/dports/math/scilab/scilab-6.1.1/scilab/modules/development_tools/macros/assert/ |
H A D | assert_checkerror.sci | 38 expectedmsg = varargin(2); 46 if (expectedmsg<>[]) then 47 if ( typeof(expectedmsg) <> "string" ) then 62 if (expectedmsg<>[]) then 63 if ((size(expectedmsg, "r") > 1) & (size(expectedmsg, "c") > 1)) 76 if (expectedmsg<>[]) then 111 localmsg = gettext(expectedmsg) 123 if (expectedmsg <> []) then 124 isdifferentmsg = or(expectedmsg <> compmsg); 131 if size(expectedmsg, "*") <> 1 then [all …]
|
/dports/databases/py-xapian/xapian-bindings-1.4.18/python3/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, code, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is None: 132 elif isinstance(expectedmsg, str): 133 if str(e) != expectedmsg: 138 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg)) 139 elif callable(expectedmsg): 140 if not expectedmsg(str(e)): 145 …Exception string not as expected: got '%s', expected pattern '%s'" % (str(e), expectedmsg.pattern)) [all …]
|
/dports/databases/p5-Xapian/xapian-bindings-1.4.18/python3/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, code, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is None: 132 elif isinstance(expectedmsg, str): 133 if str(e) != expectedmsg: 138 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg)) 139 elif callable(expectedmsg): 140 if not expectedmsg(str(e)): 145 …Exception string not as expected: got '%s', expected pattern '%s'" % (str(e), expectedmsg.pattern)) [all …]
|
/dports/databases/php-xapian/xapian-bindings-1.4.18/python3/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, code, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is None: 132 elif isinstance(expectedmsg, str): 133 if str(e) != expectedmsg: 138 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg)) 139 elif callable(expectedmsg): 140 if not expectedmsg(str(e)): 145 …Exception string not as expected: got '%s', expected pattern '%s'" % (str(e), expectedmsg.pattern)) [all …]
|
/dports/databases/lua-xapian/xapian-bindings-1.4.18/python3/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, code, *args): 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is None: 132 elif isinstance(expectedmsg, str): 133 if str(e) != expectedmsg: 138 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg)) 139 elif callable(expectedmsg): 140 if not expectedmsg(str(e)): 145 …Exception string not as expected: got '%s', expected pattern '%s'" % (str(e), expectedmsg.pattern)) [all …]
|
/dports/databases/py-xapian/xapian-bindings-1.4.18/python/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is not None and str(e) != expectedmsg: 135 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
/dports/databases/p5-Xapian/xapian-bindings-1.4.18/python/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is not None and str(e) != expectedmsg: 135 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
/dports/databases/php-xapian/xapian-bindings-1.4.18/python/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is not None and str(e) != expectedmsg: 135 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
/dports/databases/lua-xapian/xapian-bindings-1.4.18/python/ |
H A D | testsuite.py | 109 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 121 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 128 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 130 if expectedmsg is not None and str(e) != expectedmsg: 135 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
/dports/databases/xapian-bindings12/xapian-bindings-1.2.25/python/ |
H A D | testsuite3.py | 108 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 111 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 118 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 120 if str(e) != expectedmsg: 125 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
H A D | testsuite2.py | 109 def expect_exception(self, expectedclass, expectedmsg, callable, *args): argument 112 … self._out.write("Checking for exception: %s(%r) ... " % (str(expectedclass), expectedmsg)) 119 raise TestFail("Expected %s(%r) exception" % (str(expectedclass), expectedmsg)) 121 if str(e) != expectedmsg: 126 …raise TestFail("Exception string not as expected: got '%s', expected '%s'" % (str(e), expectedmsg))
|
/dports/games/NBlood/NBlood-a1689a4/source/rr/src/lunatic/ |
H A D | test.lua | 29 local function checkfail(funcstr, expectedmsg) 38 if (expectedmsg==nil or string.find(errmsg, expectedmsg, 1, true)) then 43 ", but expected error message was: "..expectedmsg)
|
/dports/lang/nim/nim-1.6.2/testament/ |
H A D | testament.nim | 439 var expectedmsg: string = "" 443 codegenCheck(test, target, expected, expectedmsg, given) 447 expectedmsg = expected.nimout 452 r.addResult(test, target, expectedmsg, givenmsg, given.err)
|