From 260ea49ed393348e2fbef0b70c388910d3291f16 Mon Sep 17 00:00:00 2001 From: jekto_vatimeliju Date: Mon, 27 Jul 2020 18:27:10 +0900 Subject: [PATCH] Add test085 because the source code was fixed by https://github.com/wenyan-lang/book/commit/0c8c030dc8a9f6ebeb8a26d0c44ef992025bf720 --- src/tests/mod.rs | 4 ++++ test085.rs | 9 +++++++++ test085.wy | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 test085.rs create mode 100644 test085.wy diff --git a/src/tests/mod.rs b/src/tests/mod.rs index ca74b70..7db2fcc 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -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` /// * ownership diff --git a/test085.rs b/test085.rs new file mode 100644 index 0000000..087e582 --- /dev/null +++ b/test085.rs @@ -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); + } +} diff --git a/test085.wy b/test085.wy new file mode 100644 index 0000000..3ae37f1 --- /dev/null +++ b/test085.wy @@ -0,0 +1,5 @@ +吾有一列。名之曰「甲」。充「甲」以三。充「甲」以五。 + +吾有一列。名之曰「乙」。 +凡「甲」中之「元」。充「乙」以「元」也。 +