[geany/geany] 2a8075: Rust: Update ctags tests.
SiegeLord
git-noreply at xxxxx
Wed Apr 2 01:37:03 UTC 2014
Branch: refs/heads/master
Author: SiegeLord <slabode at aim.com>
Committer: SiegeLord <slabode at aim.com>
Date: Wed, 02 Apr 2014 01:37:03 UTC
Commit: 2a80759a3aa323ab393e79864bfec0c35b0f6afb
https://github.com/geany/geany/commit/2a80759a3aa323ab393e79864bfec0c35b0f6afb
Log Message:
-----------
Rust: Update ctags tests.
Also, make them compile again with the Rust compiler.
Modified Paths:
--------------
tests/ctags/test_input.rs
tests/ctags/test_input.rs.tags
tests/ctags/test_input2.rs
Modified: tests/ctags/test_input.rs
24 files changed, 23 insertions(+), 1 deletions(-)
===================================================================
@@ -2,9 +2,25 @@
#[feature(globs)];
#[feature(macro_rules)];
use std::*;
+use std::io::stdio::println;
use test_input2::*;
mod test_input2;
+pub struct A
+{
+ foo: fn() -> int,
+ bar: int
+}
+
+pub struct B
+{
+ #![cfg(test)]
+ #[cfg(test)]
+ foo: int,
+ #![cfg(test)]
+ bar: int
+}
+
/*
* fn ignored_in_comment() {}
*/
@@ -27,6 +43,8 @@ macro_rules! test_macro
() => {1}
}
+macro_rules! ignore (($($x:tt)*) => (()))
+
fn yada(a:int,c:Foo,b:test_input2::fruit::SomeStruct) -> ~str {
a.to_str()
}
@@ -43,6 +61,10 @@ fn main() {
(
fn ignored_inside_macro() {}
)
+ ignore!
+ [
+ fn ignored_inside_macro() {}
+ ]
let _ = "fn ignored_in_string() {}
";
@@ -64,7 +86,7 @@ struct Foo2 {
}
impl Foo {
- fn my_method(&self,_:int){ print("my_method of foo");}
+ fn my_method(&self,_:int){ println("my_method of foo");}
}
enum Animal {
Modified: tests/ctags/test_input.rs.tags
7 files changed, 7 insertions(+), 0 deletions(-)
===================================================================
@@ -1,5 +1,7 @@
# format=tagmanager
+AÌ2048Ö0
AnimalÌ2Ö0
+BÌ2048Ö0
BarÌ2048Ö0
BazÌ2048Ö0
DoZÌ32Ö0
@@ -16,10 +18,15 @@ a_anteater
a_bearÌ4ÎAnimalÖ0
a_catÌ4ÎAnimalÖ0
a_dogÌ4ÎAnimalÖ0
+barÌ8ÎAÖ0
+barÌ8ÎBÖ0
do_zÌ128Í(&self)ÎDoZÖ0
do_zÌ128Í(&self)ÎFooÖ0
+fooÌ8ÎAÖ0
+fooÌ8ÎBÖ0
foo_field_1Ì8ÎFooÖ0
gfuncÌ16Í<X:Testable+DoZ>(x:&X)Ö0
+ignoreÌ65536Ö0
mainÌ16Í()Ö0
my_methodÌ128Í(&self,_:int)ÎFooÖ0
nestedÌ16Í()ÎmainÖ0
Modified: tests/ctags/test_input2.rs
2 files changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,5 @@
+use std::io::stdio::println;
+
pub fn foo_bar_test_func(apples:fruit::SomeStruct,(oranges,lemon):(int,int))->int{
let some_var_name=2*oranges;
let a=SomeLongStructName{v:0};
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list