Skip to content

Commit 25b29f5

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 25b29f5

17 files changed

+30
-14
lines changed

traces/trace-01-ops.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test of insert_head and remove_head
1+
# Test of operations - 1
2+
# Requires: 'q_new', 'q_insert_head', 'q_remove_head'
23
option fail 0
34
option malloc 0
45
new

traces/trace-02-ops.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test of insert_head, insert_tail, remove_head, remove_tail, and delete_mid
1+
# Test of operations - 2
2+
# Requires: 'q_new', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_remove_tail', 'q_delete_mid'
23
option fail 0
34
option malloc 0
45
new

traces/trace-03-ops.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test of insert_head, insert_tail, remove_head, reverse and merge
1+
# Test of operations - 3
2+
# Requires: 'q_new', 'q_insert_head', 'q_remove_head', 'q_reverse', 'q_sort', 'q_merge'
23
option fail 0
34
option malloc 0
45
new

traces/trace-04-ops.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test of insert_head, insert_tail, size, swap, and sort
1+
# Test of operations - 4
2+
# Requires: 'q_new', 'q_insert_tail', 'q_insert_head', 'q_remove_head', 'q_size', 'q_swap', 'q_sort'
23
option fail 0
34
option malloc 0
45
new

traces/trace-05-ops.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Test of insert_head, insert_tail, remove_head, reverse, size, swap, and sort
2-
option fail 0
1+
# Test of operations - 5
2+
# Requires: 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', 'q_swap', 'q_sort'
33
option malloc 0
44
new
55
ih dolphin

traces/trace-06-ops.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test of insert_head, insert_tail, delete duplicate, sort, descend and reverseK
1+
# Test of operations - 6
2+
# Requires: 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_delete_dup', 'q_sort', 'q_descend', 'q_reverseK'
23
new
34
ih RAND 4
45
it gerbil 3

traces/trace-07-string.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Test of truncated strings
2+
# Requires: 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_sort'
23
option fail 0
34
option malloc 0
45
new

traces/trace-08-robust.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Test operations on empty queue
2+
# Requires: 'q_new', 'q_remove_head', 'q_reverse', 'q_size', 'q_sort'
23
option fail 10
34
option malloc 0
45
new

traces/trace-09-robust.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Test remove_head with NULL argument
1+
# Test q_remove_head with NULL argument
2+
# Requires: 'q_new', 'q_insert_head', 'q_remove_head'
23
option fail 10
34
option malloc 0
45
new

traces/trace-10-robust.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Test operations on NULL queue
2+
# Requires: 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', 'q_sort'
23
option fail 10
34
option malloc 0
45
free

0 commit comments

Comments
 (0)