Skip to content

Commit

Permalink
Add a test for bytes!
Browse files Browse the repository at this point in the history
  • Loading branch information
sammykim committed May 16, 2013
1 parent 70a19d5 commit ba9668e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/run-pass/syntax-extension-bytes.rs
@@ -0,0 +1,16 @@
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn main() {
let vec = bytes!("abc");
assert_eq!(vec[0], 97);
assert_eq!(vec[1], 98);
assert_eq!(vec[2], 99);
}

5 comments on commit ba9668e

@bors
Copy link
Contributor

@bors bors commented on ba9668e May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from luqmana
at sammykim@ba9668e

@bors
Copy link
Contributor

@bors bors commented on ba9668e May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging sammykim/rust/bytes = ba9668e into auto

@bors
Copy link
Contributor

@bors bors commented on ba9668e May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sammykim/rust/bytes = ba9668e merged ok, testing candidate = f198832

@bors
Copy link
Contributor

@bors bors commented on ba9668e May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on ba9668e May 16, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = f198832

Please sign in to comment.