(str)
| 49 | } |
| 50 | |
| 51 | function test_regexp(str) { |
| 52 | var pos_match = str.match(/\s/); |
| 53 | var neg_match = str.match(/\S/); |
| 54 | var test_char = str[0]; |
| 55 | var postfix = str[1]; |
| 56 | if (is_whitespace(test_char)) { |
| 57 | assertEquals(test_char, pos_match[0]); |
| 58 | assertEquals(postfix, neg_match[0]); |
| 59 | } else { |
| 60 | assertEquals(test_char, neg_match[0]); |
| 61 | assertNull(pos_match); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | function test_trim(c, infix) { |
| 66 | var str = c + c + c + infix + c; |
no test coverage detected