Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Trace files
* They are short and simple.
* We encourage to study them to see what tests are being performed.
* XX is the trace number (1-17). CAT describes the general nature of the test.
* All functions that need to be implemented are explicitly listed.
* If a colon is present in the title, all functions mentioned afterwards must be correctly implemented for the test to pass.
* `traces/trace-eg.cmd` : A simple, documented trace file to demonstrate the operation of `qtest`

## Debugging Facilities
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-01-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head and remove_head
# Test of 'q_new', 'q_insert_head', and 'q_remove_head'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-02-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head, insert_tail, remove_head, remove_tail, and delete_mid
# Test of 'q_new', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_remove_tail', and 'q_delete_mid'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-03-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head, insert_tail, remove_head, reverse and merge
# Test of 'q_new', 'q_insert_head', 'q_remove_head', 'q_reverse', 'q_sort', and 'q_merge'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-04-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head, insert_tail, size, swap, and sort
# Test of 'q_new', 'q_insert_tail', 'q_insert_head', 'q_remove_head', 'q_size', 'q_swap', and 'q_sort'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-05-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head, insert_tail, remove_head, reverse, size, swap, and sort
# Test of 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', 'q_swap', and 'q_sort'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-06-ops.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of insert_head, insert_tail, delete duplicate, sort, descend and reverseK
# Test of 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_delete_dup', 'q_sort', 'q_descend', and 'q_reverseK'
new
ih RAND 4
it gerbil 3
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-07-string.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of truncated strings
# Test of truncated strings: 'q_new', 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', and 'q_sort'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-08-robust.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test operations on empty queue
# Test operations on empty queue: 'q_new', 'q_remove_head', 'q_reverse', 'q_size', and 'q_sort'
option fail 10
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-09-robust.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test remove_head with NULL argument
# Test 'q_remove_head' with NULL argument: 'q_new', 'q_insert_head', and 'q_remove_head'
option fail 10
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-10-robust.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test operations on NULL queue
# Test operations on NULL queue: 'q_free', 'q_insert_head', 'q_insert_tail', 'q_remove_head', 'q_reverse', 'q_size', and 'q_sort'
option fail 10
option malloc 0
free
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-11-malloc.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of malloc failure on insert_head
# Test of malloc failure on 'q_insert_head': 'q_new', and 'q_insert_head'
option fail 30
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-12-malloc.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of malloc failure on insert_tail
# Test of malloc failure on 'q_insert_tail': 'q_new', 'q_insert_head', and 'q_insert_tail'
option fail 50
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-13-malloc.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test of malloc failure on new
# Test of malloc failure on 'q_new': 'q_new'
option fail 10
option malloc 50
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-14-perf.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test performance of insert_tail, reverse, and sort
# Test performance of 'q_new', 'q_insert_head', 'q_insert_tail', 'q_reverse', and 'q_sort'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-15-perf.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test performance of sort with random and descending orders
# Test performance of 'q_sort' with random and descending orders: 'q_new', 'q_free', 'q_insert_head', 'q_sort', and 'q_reverse'
# 10000: all correct sorting algorithms are expected pass
# 50000: sorting algorithms with O(n^2) time complexity are expected failed
# 100000: sorting algorithms with O(nlogn) time complexity are expected pass
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-16-perf.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test performance of insert_tail
# Test performance of 'q_new', 'q_insert_head', 'q_insert_tail', and 'q_reverse'
option fail 0
option malloc 0
new
Expand Down
2 changes: 1 addition & 1 deletion traces/trace-17-complexity.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test if time complexity of q_insert_tail, q_insert_head, q_remove_tail, and q_remove_head is constant
# Test if time complexity of 'q_insert_tail', 'q_insert_head', 'q_remove_tail', and 'q_remove_head' is constant
option simulation 1
it
ih
Expand Down
Loading