Skip to content

Commit

Permalink
Add test085 because the source code was fixed by wenyan-lang/book@0c8…
Browse files Browse the repository at this point in the history
  • Loading branch information
sozysozbot committed Jul 27, 2020
1 parent 99dbaa1 commit 260ea49
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ fn test083() {
fn test084() {
test("test084")
}
#[test]
fn test085() {
test("test085")
}
/// note that fail000.rs currently does not compile as a valid Rust program because of:
/// * `{}` on `Vec<f64>`
/// * ownership
Expand Down
9 changes: 9 additions & 0 deletions test085.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn main() {
let mut JIA3 = vec![];
JIA3.push(3.0);
JIA3.push(5.0);
let mut YI3 = vec![];
for YUAN2 in JIA3 {
YI3.push(YUAN2);
}
}
5 changes: 5 additions & 0 deletions test085.wy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
吾有一列。名之曰「甲」。充「甲」以三。充「甲」以五。

吾有一列。名之曰「乙」。
凡「甲」中之「元」。充「乙」以「元」也。

0 comments on commit 260ea49

Please sign in to comment.