[geany/geany] d82cd9: Update unit tests

Jiří Techet git-noreply at geany.org
Fri May 13 00:15:57 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Fri, 13 May 2022 00:15:57 UTC
Commit:      d82cd9879fb778dc4cca89a4811e23a6d3e13195
             https://github.com/geany/geany/commit/d82cd9879fb778dc4cca89a4811e23a6d3e13195

Log Message:
-----------
Update unit tests

Update qualified_types.f90 and members.f90 to remove the "kind" and "len"
specifiers after integers. I haven't seen this usage documented anywhere
and the syntax, when used should include braces such as integer(len=5).
The previous Geany Fortran parser used to parse these but since I
don't think it's a valid syntax, I didn't submit the corresponding
patch upstream.

The rest of the tests is mostly added function arguments and different
names for anonymous tags.


Modified Paths:
--------------
    tests/ctags/bug565813.f90.tags
    tests/ctags/bug670433.f90.tags
    tests/ctags/bug726712.f90.tags
    tests/ctags/enum.f90.tags
    tests/ctags/forall_module.f90.tags
    tests/ctags/fortran_associate.f90.tags
    tests/ctags/members.f90.tags
    tests/ctags/numlib.f90.tags
    tests/ctags/procedure_pointer_module.f90.tags
    tests/ctags/qualified_types.f90
    tests/ctags/square_parens.f90.tags
    tests/ctags/stdcall.f.tags
    tests/ctags/structure.f.tags

Modified: tests/ctags/bug565813.f90.tags
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -3,6 +3,6 @@ N
 bar�64�foo_t�0
 ctags_bug�256�0
 foo_getbar�16�ctags_bug�0
-foo_set_bar�128�ctags_bug�0
-foo_setbar�128�ctags_bug�0
+foo_set_bar�128�(f, b)�ctags_bug�0
+foo_setbar�128�(f, b)�ctags_bug�0
 foo_t�1�ctags_bug�0


Modified: tests/ctags/bug670433.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,5 +1,5 @@
 # format=tagmanager
-bar�128�foobar�0
+bar�128�(n)�foobar�0
 f�16�foo�0
 foo�16�foobar�0
 foobar�256�0


Modified: tests/ctags/bug726712.f90.tags
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -1,4 +1,4 @@
 # format=tagmanager
-sub1�128�0
-sub2�128�0
-tagstest_ctrl�128�0
+sub1�128�(a)�0
+sub2�128�(a)�0
+tagstest_ctrl�128�()�0


Modified: tests/ctags/enum.f90.tags
26 lines changed, 13 insertions(+), 13 deletions(-)
===================================================================
@@ -8,22 +8,22 @@ Named4
 Named5�2�Constants�0
 Named6�2�Constants�0
 Named7�2�Constants�0
-a�4�Enum#1�0
+a�4�anon_enum_2�0
 anon_enum_1�2�Constants�1
 anon_enum_2�2�Constants�1
-b�4�Enum#1�0
-black�4�Enum#0�0
-blue�4�Enum#0�0
-bronze�4�Enum#0�0
-c�4�Enum#1�0
-gold�4�Enum#0�0
+b�4�anon_enum_2�0
+black�4�anon_enum_1�0
+blue�4�anon_enum_1�0
+bronze�4�anon_enum_1�0
+c�4�anon_enum_2�0
+gold�4�anon_enum_1�0
 hc�16384�Constants�0
-lavender�4�Enum#0�0
+lavender�4�anon_enum_1�0
 pi�16384�Constants�0
-pink�4�Enum#0�0
-purple�4�Enum#0�0
-red�4�Enum#0�0
-silver�4�Enum#0�0
+pink�4�anon_enum_1�0
+purple�4�anon_enum_1�0
+red�4�anon_enum_1�0
+silver�4�anon_enum_1�0
 x1�4�Named1�0
 x2�4�Named2�0
 x3�4�Named3�0
@@ -38,7 +38,7 @@ y4
 y5�4�Named5�0
 y6�4�Named6�0
 y7�4�Named7�0
-yellow�4�Enum#0�0
+yellow�4�anon_enum_1�0
 z1�4�Named1�0
 z2�4�Named2�0
 z3�4�Named3�0


Modified: tests/ctags/forall_module.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,5 +1,5 @@
 # format=tagmanager
 a�16384�with_forall�0
-sub_with_forall�128�with_forall�0
+sub_with_forall�128�(x)�with_forall�0
 two�16�with_forall�0
 with_forall�256�0


Modified: tests/ctags/fortran_associate.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,5 +1,5 @@
 # format=tagmanager
 a�16384�with_associate�0
-do_other_stuff�128�with_associate�0
+do_other_stuff�128�(a)�with_associate�0
 do_stuff�16�with_associate�0
 with_associate�256�0


Modified: tests/ctags/members.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -2,7 +2,7 @@
 HasMembers�1�Members�0
 Members�256�0
 MyMethod�64�HasMembers�0
-MySubroutine�128�Members�0
+MySubroutine�128�(arg)�Members�0
 kind_member�64�HasMembers�0
 len_member�64�HasMembers�0
 member�64�HasMembers�0


Modified: tests/ctags/numlib.f90.tags
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,4 @@
 # format=tagmanager
 anon_interface_1�32�numerical_libraries�1
+anon_interface_2�32�b2lsf�1
 numerical_libraries�256�0


Modified: tests/ctags/procedure_pointer_module.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -2,4 +2,4 @@
 a�16384�proc_pointer�0
 my_pointer�16384�proc_pointer�0
 proc_pointer�256�0
-sub�128�proc_pointer�0
+sub�128�(x)�proc_pointer�0


Modified: tests/ctags/qualified_types.f90
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -2,8 +2,8 @@ module test
   implicit none
   type goodtype(p1, p2, p3, p4) ! the stuff in brackets after the name of the type shouldn't appear in the type's name
                                 ! this is already correctly handled, so that's fine
-    integer, kind     :: p1, p3 
-    integer, len      :: p2, p4 ! the question is whether or not these "kind" and "len"s should be shown as members
+    integer, kind     :: p1, p3 ! the question is whether or not these "kind" and "len"s should be shown as members
+    integer, len      :: p2, p4
     real(kind=p1)     :: c1
     character(len=p2) :: c2
     complex           :: c3(p3)


Modified: tests/ctags/square_parens.f90.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,7 +1,7 @@
 # format=tagmanager
 Symmetry�1�squaretest�0
 assignee�16384�squaretest�0
-execute�128�squaretest�0
+execute�128�(state)�squaretest�0
 invisible�16384�squaretest�0
 invisible_four�16384�squaretest�0
 invisible_three�16384�squaretest�0


Modified: tests/ctags/stdcall.f.tags
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1,6 +1,6 @@
 # format=tagmanager
 D02CJW�16384�0
-FCN�128�0
+FCN�128�(T, Y, F)�0
 G�16�0
 G�16384�0
 H�16384�0
@@ -11,7 +11,7 @@ J
 K�16384�0
 N�16384�0
 NOUT�16384�0
-OUT�128�0
+OUT�128�(X, Y)�0
 PI�16384�0
 RELABS�16384�0
 TOL�16384�0


Modified: tests/ctags/structure.f.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,5 +1,5 @@
 # format=tagmanager
-a�64�Structure#0�0
+a�64�anon_type_1�0
 anon_type_1�1�nested�1
 clouds�64�weather�0
 day�64�weather�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