]> git.proxmox.com Git - rustc.git/blob - src/test/run-pass/parser-unicode-whitespace.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / run-pass / parser-unicode-whitespace.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11
12 // Beware editing: it has numerous whitespace characters which are important.
13 // It contains one ranges from the 'PATTERN_WHITE_SPACE' property outlined in
14 // http://unicode.org/Public/UNIDATA/PropList.txt
15 //
16 // The characters in the first expression of the assertion can be generated
17 // from: "4\u{0C}+\n\t\r7\t*\u{20}2\u{85}/\u{200E}3\u{200F}*\u{2028}2\u{2029}"
18 pub fn main() {
19 assert_eq!(4\f+
20
21 7 * 2\85/3*2, 4 + 7 * 2 / 3 * 2);
22 }