changeset 694:89abde9fb7ce

add red test
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 21 Aug 2020 17:10:38 +0900
parents aeab4866ee36
children 9a6d413f1112
files src/parallel_execution/perlTests/Interface.t
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/perlTests/Interface.t	Fri Aug 21 17:07:01 2020 +0900
+++ b/src/parallel_execution/perlTests/Interface.t	Fri Aug 21 17:10:38 2020 +0900
@@ -20,7 +20,7 @@
     plan tests => 1;
 
     my $stack_header = "$FindBin::Bin/../Stack.h";
-    my $expand = {
+    my $want = {
           name => 'Stack',
           file_name => $stack_header,
           content => [
@@ -39,9 +39,9 @@
                        ]
      };
 
-     my $res = Gears::Interface->parse($stack_header);
+     my $have = Gears::Interface->parse($stack_header);
 
-     is_deeply ($res, $expand, "parsing stack.h");
+     is_deeply ($have, $want, "parsing stack.h");
   };
 };
 
@@ -52,7 +52,7 @@
 
     my $queue_header = "$FindBin::Bin/../Queue.h";
 
-    my $expand = {
+    my $want = {
             'data' => [
                         'union Data* queue;',
                         'union Data* data;'
@@ -97,15 +97,14 @@
                        ],
             'hasOutputArgs' => {
                                  'take' => {
-                                             'Data' => 'union',
-                                             'data' => '*'
+                                             'data' => 'union Data*'
                                            }
                                }
           };
 
-          my $res = Gears::Interface->separate_code_and_data_gear_after_parse($queue_header);
+          my $have = Gears::Interface->separate_code_and_data_gear_after_parse($queue_header);
 
-          is_deeply ($res, $expand, "parsing Queue.h");
+          is_deeply ($have, $want, "parsing Queue.h")  || diag explain $have;
       };
 
 };