浏览代码

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);
+}