Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
d_in = '22-Oct-2014';
m_correct = 6;
m_test = monthsUntilMatch(d_in);
assert(isequal(m_test,m_correct))
|
2 | Pass |
d_in = '2-Jul-2014';
m_correct = 14;
m_test = monthsUntilMatch(d_in);
assert(isequal(m_test,m_correct))
|
3 | Pass |
d_in = '12-May-2011';
m_correct = 8;
m_test = monthsUntilMatch(d_in);
assert(isequal(m_test,m_correct))
|
4 | Pass |
d_in = '14-Jul-1789';
m_correct = 14;
m_test = monthsUntilMatch(d_in)
assert(isequal(m_test,m_correct))
m_test =
14
|
5 | Pass |
d_in = '31-Dec-1999';
m_correct = 3;
m_test = monthsUntilMatch(d_in)
assert(isequal(m_test,m_correct))
m_test =
3
|
289 Solvers
Who knows the last digit of pi?
557 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Getting the row and column location from a matrix
236 Solvers
Count decimal digits of a number
176 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!