[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test failure for substr
From: |
Ben Abbott |
Subject: |
test failure for substr |
Date: |
Sat, 08 Oct 2011 18:21:44 -0400 |
Rik,
Does this test from changeset 42d5ff896e85 work for you?
assert (substr ("This is a test string", 1, 0), "");
It fails for me due to a difference in size.
a = substr ("This is a test string", 1, 0);
b = "";
whos a b
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 1x0 0 char
b 0x0 0 char
Total is 0 elements using 0 bytes
Any objection to changing it to ...
assert (isempty (substr ("This is a test string", 1, 0));
Ben
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- test failure for substr,
Ben Abbott <=