Rank: 2706 based on 41 downloads (last 30 days) and 2 files submitted
photo

Christopher

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Christopher View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 Jul 2009 Screenshot mlunit_2008a A MATLAB unit test framework supporting new classdef files (r2008a) Author: Christopher development, unit testing, framework, widget, unit, units 16 3
  • 4.66667
4.7 | 3 ratings
13 Jul 2009 hashtable class general purpose hashtable Author: Christopher structures, cell arrays, hashtable, general, type, keys 25 5
  • 4.5
4.5 | 2 ratings
Comments and Ratings on Christopher 's Files View all
Updated File Comment by Comments Rating
26 Jul 2013 mlunit_2008a A MATLAB unit test framework supporting new classdef files (r2008a) Author: Christopher per isakson

Now I've run the sample tests with R2013a. It works nicely. However, there were two minor problems.

Firstly, I cannot avoid the warning: "The selected tests appear to not be in your current path[...]" and accepts adding it. The reason seems to be the case of a drive letter. The variable, pname, has a capital "H" and path and pwd returns lower case "h". Here are some excerpts from my tracking the issue.

classdef GuiTestRunner < TestRunner
...
%%%%%%%%%%%%%
function addTestsCB(self, src, event)
[fnames, pname] = uigetfile('*.m', 'Add ...
...
if ~strcmp(pname, pwd)
k = strfind(path, pname);
if isempty(k)

K>> str = path;
K>> strfind( str, pname)
ans =
[]
K>> str(1:60)
ans =
h:\m\FEX\xUnit\mlunit_2008a\samples;h:\m\F...
K>> pwd
ans =
h:\m\FEX\xUnit\mlunit_2008a
K>> pname
pname =
H:\m\FEX\xUnit\mlunit_2008a\samples

Secondly, I had a run-time error, "Too many input ...", which I "magically" fixed by adding a tilde, "~", to the signature of the constructor, TestResult. Weird!

Too many input arguments.
Error in TestSuiteResult (line 12)
self = self@TestResult(varargin{:});
Error in TestSuite/getNewTestResult (line 24)
tr = TestSuiteResult(self, parent);
....

function self = TestResult(obj, par, ~ )

16 Jun 2011 mlunit_2008a A MATLAB unit test framework supporting new classdef files (r2008a) Author: Christopher Marcel Rüland

Verry good. Easy to use and helps to avoid bad surprises due to hidden bugs in many cases.

28 Apr 2011 hashtable class general purpose hashtable Author: Christopher Daniel Golden

Thank you for your comment, Shawn; as you mention, Matlab already has a hash table built in: the containers.Map class. They make it difficult to find by never mentioning the term "hash table" in the documentation.

23 Mar 2011 hashtable class general purpose hashtable Author: Christopher Shawn Hershey

I've been having trouble findint MATLAB built-in support for hash tables and a coworker recently pointed me to this:

http://www.mathworks.com/help/techdoc/matlab_prog/brqqo5e-1.html

I can't see anything in the documentation that describes the underlying data structures but tests seem to imply O(1) insertion and lookup.

I wanted to mention that here since this page is currently the first hit for the Google search "MATLAB hashtable".

25 Jun 2010 hashtable class general purpose hashtable Author: Christopher Karl

I have simply been creating hashtables with java.util.Hashtable for some time now. This is a good, thoroughly vetted hashtable class and is automatically available within matlab. Type 'methodsview java.util.Hashtable' for a list of methods. Note that a 'remove' method is included.

Contact us