diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-07 19:45:11 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-07 19:45:11 +0530 |
commit | 72eae396795d61c0f68d5f09dd84f0835bf10c79 (patch) | |
tree | 0992c2062161fc1337c813d6d065df6260ce7b7d /python/tidy_self_test/rust_tidy.rs | |
parent | a333f0fdd0c15a893e43a09e5ba43c173f847ae2 (diff) | |
parent | b8c9a288e9cd6dea04082f997fdd0669ddea9b4e (diff) | |
download | servo-72eae396795d61c0f68d5f09dd84f0835bf10c79.tar.gz servo-72eae396795d61c0f68d5f09dd84f0835bf10c79.zip |
Auto merge of #9835 - mskrzypkows:tidy_tests, r=Wafflespeanut
Initial tests for tidy.py #9152
I've created tests for spaces check and license. Tell me if it's good direction so I'll add more tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9835)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy_self_test/rust_tidy.rs')
-rw-r--r-- | python/tidy_self_test/rust_tidy.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/python/tidy_self_test/rust_tidy.rs b/python/tidy_self_test/rust_tidy.rs new file mode 100644 index 00000000000..680b527f679 --- /dev/null +++ b/python/tidy_self_test/rust_tidy.rs @@ -0,0 +1,37 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +use app_units::Au; +use azure::azure_hl::{AntialiasMode, Color, +ColorPattern, CompositionOp}; +use euclid::size::Size2D; +use azure::azure::AzIntSize; + +use std; + +mod paint_context; +pub mod display_list; +mod test::{ +}; + +extern crate webrender_traits; +extern crate style_traits; + +impl test { + + fn test_fun(y:f32)->f32{ + let x=5; + x = x-1; + x = x*x; + let z = match y { + 1 =>2, + 2 => 1, + }; + let z = &Vec<T>; + } + + fn test_fun2(y : &String, z : &Vec<f32>) -> f32 { + 1 + } +} |