Skip to content

Commit

Permalink
Add fail001 and fail002
Browse files Browse the repository at this point in the history
  • Loading branch information
sozysozbot committed Jul 26, 2020
1 parent 468f209 commit 00e4874
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
14 changes: 14 additions & 0 deletions fail001.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
fn main() {
let mut XING2YI1 = vec![];
XING2YI1.append(&mut vec![4.0, 9.0, 2.0]);
let mut XING2ER4 = vec![];
XING2ER4.append(&mut vec![3.0, 5.0, 7.0]);
let mut XING2SAN1 = vec![];
XING2SAN1.append(&mut vec![8.0, 1.0, 6.0]);
let mut JIU3GONG1 = vec![];
JIU3GONG1.append(&mut vec![XING2YI1, XING2ER4, XING2SAN1]);
for XING2 in JIU3GONG1 {
let _ans1 = XING2;
println!("{}", _ans1);
}
}
6 changes: 6 additions & 0 deletions fail001.wy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
吾有一列。名之曰「行一」。充「行一」以四。以九。以二。
吾有一列。名之曰「行二」。充「行二」以三。以五。以七。
吾有一列。名之曰「行三」。充「行三」以八。以一。以六。
吾有一列。名之曰「九宮」。充「九宮」以「行一」以「行二」以「行三」。

凡「九宮」中之「行」。夫「行」。書之也。
27 changes: 27 additions & 0 deletions fail002.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
fn main() {
let mut XING2YI1 = vec![];
XING2YI1.append(&mut vec![4.0, 9.0, 2.0]);
let mut XING2ER4 = vec![];
XING2ER4.append(&mut vec![3.0, 5.0, 7.0]);
let mut XING2SAN1 = vec![];
XING2SAN1.append(&mut vec![8.0, 1.0, 6.0]);
let mut JIU3GONG1 = vec![];
JIU3GONG1.append(&mut vec![XING2YI1, XING2ER4, XING2SAN1]);
for XING2 in JIU3GONG1 {
let _ans1 = XING2;
println!("{}", _ans1);
}
let GUANG3 = 9.0;
let mut ZONG4HENG2TU2 = vec![];
let mut _rand1 = 0.0;
while _rand1 < GUANG3 {
let mut XING2 = vec![];
let mut _rand2 = 0.0;
while _rand2 < GUANG3 {
XING2.push(0.0);
_rand2 += 1.0;
}
ZONG4HENG2TU2.push(XING2);
_rand1 += 1.0;
}
}
15 changes: 15 additions & 0 deletions fail002.wy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
吾有一列。名之曰「行一」。充「行一」以四。以九。以二。
吾有一列。名之曰「行二」。充「行二」以三。以五。以七。
吾有一列。名之曰「行三」。充「行三」以八。以一。以六。
吾有一列。名之曰「九宮」。充「九宮」以「行一」以「行二」以「行三」。

凡「九宮」中之「行」。夫「行」。書之也。

有數九。名之曰「廣」。

吾有一列。名之曰「縱橫圖」。
為是「廣」遍。
 吾有一列。名之曰「行」。
 為是「廣」遍。充「行」以零也。
 充「縱橫圖」以「行」也。

16 changes: 15 additions & 1 deletion src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,24 @@ fn test083() {
fn test084() {
test("test084")
}
/// note that fail000.rs currently does not compile as a valid Rust program, for two reasons:
/// note that fail000.rs currently does not compile as a valid Rust program because of:
/// * `{}` on `Vec<f64>`
/// * ownership
#[test]
fn fail000() {
test("fail000")
}

/// note that fail001.rs currently does not compile as a valid Rust program because of:
/// * `{}` on `Vec<f64>`
#[test]
fn fail001() {
test("fail001")
}

/// note that fail002.rs currently does not compile as a valid Rust program because of:
/// * `{}` on `Vec<f64>`
#[test]
fn fail002() {
test("fail002")
}

0 comments on commit 00e4874

Please sign in to comment.