Skip to content

Commit b3ea1e2

Browse files
authored
Test requirements
* Requirements and Test Oracles document added * Requirements document updated
1 parent deff6f3 commit b3ea1e2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Requirements and Test Oracles
2+
3+
## Functional Requirements
4+
5+
The described data structures should be able to:
6+
1. **Traversal:** Enable traversal methods (e.g., in-order, pre-order, post-order for trees; forward/backward for linked lists).
7+
2. **Sorting:** Provide built-in or integrable sorting mechanisms where applicable.
8+
9+
10+
## Non-Functional Requirements
11+
12+
The data structure should ensure:
13+
1. **Testability:** Design should allow easy integration with unit testing frameworks.
14+
15+
16+
## Test Oracles
17+
18+
| Requirement ID | Requirement Description | Test Oracle (Expected Behavior) |
19+
|----------------|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
20+
| FR-1 | Enable traversal methods (e.g., in-order, pre-order, post-order for trees; forward/backward for linked lists) | Traversal methods should return elements in the correct sequence based on the traversal type. |
21+
| FR-2 | Provide built-in or integrable sorting mechanisms where applicable | Sorting operations should generate a correctly ordered sequence of elements. |
22+
| NFR-1 | Design should allow easy integration with unit testing frameworks | All public methods should be testable via standard unit testing frameworks. |

0 commit comments

Comments
 (0)