Skip to content

Commit f312539

Browse files
committed
---
yaml --- r: 690 b: refs/heads/master c: dda16f8 h: refs/heads/master v: v3
1 parent 23bf1ca commit f312539

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 3c3421e01d61e57032ef529ec3fd54e9057b8f9e
2+
refs/heads/master: dda16f807c2b1ce7d2ee6e510bee75e6a8dea30c

trunk/src/test/run-pass/str-append.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
// -*- rust -*-
22

3-
fn main() {
3+
use std;
4+
import std._str;
5+
6+
fn test1() {
47
let str s = "hello";
58
s += "world";
69
log s;
710
check(s.(9) == ('d' as u8));
811
}
12+
13+
fn test2() {
14+
// This tests for issue #163
15+
16+
let str ff = "abc";
17+
let str a = ff + "ABC" + ff;
18+
let str b = "ABC" + ff + "ABC";
19+
20+
log a;
21+
log b;
22+
23+
check (_str.eq(a, "abcABCabc"));
24+
check (_str.eq(b, "ABCabcABC"));
25+
}
26+
27+
fn main() {
28+
test1();
29+
test2();
30+
}

0 commit comments

Comments
 (0)