Closed
Description
I have just updated to 0.7 and getting the following
☁ rust_learning rustc --test about_arrays.rs
about_arrays.rs:1:0: 1:0 warning: static constant should have an uppercase identifier [-W non-uppercase-statics (default)]
about_arrays.rs:1
^
warning: no debug symbols in executable (-arch x86_64)
#[test]
fn test_we_can_get_item_from_array() {
let foo = ["a","b","5"];
assert!("5" == foo[2]);
}
#[test]
fn test_we_add_a_new_item_to_an_array() {
let mut foo = ~[];
foo.push(1);
foo.push(3);
foo.push(2);
foo.push(5);
assert!(foo.len() == 4);
}
#[test]
fn test_we_can_pop_items_from_list() {
let mut foo = ~["a", "b", "c"];
foo.pop();
assert!(foo.len() == 2);
assert!(~["a", "b"] == foo);
}
#[test]
fn test_that_we_can_slice_arrays() {
let foo = ["a", "b", "c"];
assert!(["c"] == foo.slice(2, 3));
}