Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 00a7654

Browse files
CodingMarkusCodingMarkus
CodingMarkus
authored and
CodingMarkus
committed
Reorder stack tests
1 parent 779917c commit 00a7654

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/basic/bin/test_stack.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fi
1515
. "$INCLUDE_PSST/basic.inc.sh"
1616

1717
# =============================================================================
18+
# stack_push_psst
1819

1920
# Push must accept exactly two arguments
2021
set +e
@@ -41,6 +42,9 @@ set +e
4142
set -e
4243

4344

45+
# =============================================================================
46+
# stack_pop_psst
47+
4448
# Pop requires at least one argument and not more than two
4549
set +e
4650
( stack_pop_psst 2>/dev/null )
@@ -67,6 +71,9 @@ set +e
6771
set -e
6872

6973

74+
# =============================================================================
75+
# stack_exists_psst
76+
7077
# Exists must accept exactly one argument
7178
set +e
7279
( stack_exists_psst 2>/dev/null )
@@ -89,6 +96,8 @@ set +e
8996
set -e
9097

9198

99+
# =============================================================================
100+
# stack_count_psst
92101

93102
# Count must accept exactly one argument
94103
set +e
@@ -112,6 +121,8 @@ set +e
112121
set -e
113122

114123

124+
# =============================================================================
125+
# Combine operations
115126

116127
# Test push creates and pops destroys
117128
(

0 commit comments

Comments
 (0)