Explorar el Código

Add a minimal single-threaded example.

ticki hace 8 años
padre
commit
9cef1dfa32
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  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);
+}