소스 검색

Add a minimal single-threaded example.

ticki 8 년 전
부모
커밋
9cef1dfa32
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      tests/minimal.rs

+ 12 - 0
tests/minimal.rs

@@ -0,0 +1,12 @@
+extern crate ralloc;
+
+#[test]
+fn minimal() {
+    let mut a = Box::new(1);
+    let mut b = Box::new(2);
+    let mut c = Box::new(3);
+
+    assert_eq!(*a, 1);
+    assert_eq!(*b, 2);
+    assert_eq!(*c, 3);
+}