()
| 124 | } |
| 125 | |
| 126 | @Test |
| 127 | public void testReplace() throws IOException { |
| 128 | REPLACE replace = new REPLACE(); |
| 129 | Tuple testTuple = Util.buildTuple("foobar", "z", "x"); |
| 130 | assertEquals("foobar".replace("z", "x"), replace.exec(testTuple)); |
| 131 | |
| 132 | // Use cached version of pattern in REPLACE |
| 133 | assertEquals("foobar".replace("z", "x"), replace.exec(testTuple)); |
| 134 | |
| 135 | testTuple = Util.buildTuple("foobar", "oo", "aa"); |
| 136 | assertEquals("foobar".replace("oo", "aa"), replace.exec(testTuple)); |
| 137 | } |
| 138 | |
| 139 | @Test |
| 140 | public void testTrim() throws IOException { |
nothing calls this directly
no test coverage detected