pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-06-27
2001-06-27 21:11:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8c8c46809b265cf52bd58adde8efe3e6c4e05e81 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test of replace().
Rev: src/testsuite.in:1.429
1:
-
test_true([["$Id: testsuite.in,v 1.
428
2001/06/27
00
:
01
:
32
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
429
2001/06/27
21
:
11
:
20
grubba
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
6692:
test_eq(replace("f--barf--",({"f--bar","f--"}),({"f--","f--bar"})),"f--f--bar") test_eq(replace("test\ntest\n\ntest\ntest",({"\n","\n\n"}),({" ","<p>"})),"test test<p>test test") test_eq(replace("test\ntest\n\ntest\ntest",({"\n\n","\n"}),({"<p>"," "})),"test test<p>test test")
+
test_eq(replace("\xfffffff0", ({ "\xfffffff0" }), ({ "" })), "")
test_eq("123\000456""890"-"\0", "123\456""890") test_eq("123\456000""890"-"\0", "123\456000""890")