diff src/parallel_execution/test/queue_test.cbc @ 399:394e38952c80

Add dummy data to SingleLinkedQueue
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 29 Aug 2017 04:28:13 +0900
parents c93216e68d70
children 481fce540daf
line wrap: on
line diff
--- a/src/parallel_execution/test/queue_test.cbc	Tue Aug 29 01:01:44 2017 +0900
+++ b/src/parallel_execution/test/queue_test.cbc	Tue Aug 29 04:28:13 2017 +0900
@@ -16,7 +16,7 @@
 
 __code queueTest2_stub(struct Context* context) {
     SingleLinkedQueue* singleLinkedQueue = (SingleLinkedQueue*)GearImpl(context, Queue, queue);
-    assert(singleLinkedQueue->top->data->Node.color == Red);
+    assert(singleLinkedQueue->top->next->data->Node.color == Red);
     assert(singleLinkedQueue->last->data->Node.color == Red);
     Queue* queue = Gearef(context, Queue);
     goto queueTest2(context, queue);
@@ -28,7 +28,7 @@
 
 __code queueTest3_stub(struct Context* context) {
     SingleLinkedQueue* singleLinkedQueue = (SingleLinkedQueue*)GearImpl(context, Queue, queue);
-    assert(singleLinkedQueue->top->data->Node.color == Red);
+    assert(singleLinkedQueue->top->next->data->Node.color == Red);
     assert(singleLinkedQueue->last->data->Node.color == Black);
     Queue* queue = Gearef(context, Queue);
     goto queueTest3(context, queue);
@@ -36,7 +36,7 @@
 
 __code assert3(struct Queue* queue) {
     SingleLinkedQueue* singleLinkedQueue = &queue->queue->Queue.queue->SingleLinkedQueue;
-    assert(singleLinkedQueue->top->data->Node.color == Black);
+    assert(singleLinkedQueue->top->next->data->Node.color == Black);
     assert(singleLinkedQueue->last->data->Node.color == Black);
     goto exit_code(context);
 }