Skip to content

Commit c251922

Browse files
committed
Refine trace command descriptions
Updated the trace command files to specify required operations explicitly. Improved documentation without modifying test data. Change-Id: If8ef44171bb5cc3cfee812d74cc33d55f6f1320b
1 parent 1d68fae commit c251922

17 files changed

+17
-17
lines changed

traces/trace-01-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head and remove_head
1+
# Test of 'q_new', 'q_insert_head', 'q_remove_head'
22
option fail 0
33
option malloc 0
44
new

traces/trace-02-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head, insert_tail, remove_head, remove_tail, and delete_mid
1+
# Test of 'q_new', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_remove_tail', 'q_delete_mid'
22
option fail 0
33
option malloc 0
44
new

traces/trace-03-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head, insert_tail, remove_head, reverse and merge
1+
# Test of 'q_new', 'q_insert_head', 'q_remove_head', 'q_reverse', 'q_sort', 'q_merge'
22
option fail 0
33
option malloc 0
44
new

traces/trace-04-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head, insert_tail, size, swap, and sort
1+
# Test of 'q_new', 'q_insert_tail', 'q_insert_head', 'q_remove_head', 'q_size', 'q_swap', 'q_sort'
22
option fail 0
33
option malloc 0
44
new

traces/trace-05-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head, insert_tail, remove_head, reverse, size, swap, and sort
1+
# Test of 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', 'q_swap', 'q_sort'
22
option fail 0
33
option malloc 0
44
new

traces/trace-06-ops.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of insert_head, insert_tail, delete duplicate, sort, descend and reverseK
1+
# Test of 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_delete_dup', 'q_sort', 'q_descend', 'q_reverseK'
22
new
33
ih RAND 4
44
it gerbil 3

traces/trace-07-string.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test of truncated strings
1+
# Test of truncated strings: 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_sort'
22
option fail 0
33
option malloc 0
44
new

traces/trace-08-robust.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test operations on empty queue
1+
# Test operations on empty queue: 'q_new', 'q_remove_head', 'q_reverse', 'q_size', 'q_sort'
22
option fail 10
33
option malloc 0
44
new

traces/trace-09-robust.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test remove_head with NULL argument
1+
# Test 'q_remove_head' with NULL argument: 'q_new', 'q_insert_head', 'q_remove_head'
22
option fail 10
33
option malloc 0
44
new

traces/trace-10-robust.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test operations on NULL queue
1+
# Test operations on NULL queue: 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', 'q_sort'
22
option fail 10
33
option malloc 0
44
free

0 commit comments

Comments
 (0)