|
|
|
|
91
|
#
|
91
|
#
|
92
|
# Colored words for `jat__show_*` functions
|
92
|
# Colored words for `jat__show_*` functions
|
93
|
#
|
93
|
#
|
|
|
94
|
+__JAT__SWORD_ASSERT=${TERMCOLORS_YELLOW}assert${TERMCOLORS_NONE}
|
94
|
__JAT__SWORD_END=${TERMCOLORS_LBLACK}END${TERMCOLORS_NONE}
|
95
|
__JAT__SWORD_END=${TERMCOLORS_LBLACK}END${TERMCOLORS_NONE}
|
95
|
__JAT__SWORD_FAIL=${TERMCOLORS_RED}FAIL${TERMCOLORS_NONE}
|
96
|
__JAT__SWORD_FAIL=${TERMCOLORS_RED}FAIL${TERMCOLORS_NONE}
|
96
|
__JAT__SWORD_FINALIZE=${TERMCOLORS_LBLACK}FINALIZE${TERMCOLORS_NONE}
|
97
|
__JAT__SWORD_FINALIZE=${TERMCOLORS_LBLACK}FINALIZE${TERMCOLORS_NONE}
|
|
|
|
|
99
|
__JAT__SWORD_RELOAD=${TERMCOLORS_LBLUE}RELOAD${TERMCOLORS_NONE}
|
100
|
__JAT__SWORD_RELOAD=${TERMCOLORS_LBLUE}RELOAD${TERMCOLORS_NONE}
|
100
|
__JAT__SWORD_SESSION=${TERMCOLORS_YELLOW}session${TERMCOLORS_NONE}
|
101
|
__JAT__SWORD_SESSION=${TERMCOLORS_YELLOW}session${TERMCOLORS_NONE}
|
101
|
__JAT__SWORD_START=${TERMCOLORS_LBLACK}START${TERMCOLORS_NONE}
|
102
|
__JAT__SWORD_START=${TERMCOLORS_LBLACK}START${TERMCOLORS_NONE}
|
102
|
-__JAT__SWORD_SUT=${TERMCOLORS_YELLOW}sut${TERMCOLORS_NONE}
|
|
|
103
|
__JAT__SWORD_TERROR=${TERMCOLORS_RED}ERROR${TERMCOLORS_NONE}
|
103
|
__JAT__SWORD_TERROR=${TERMCOLORS_RED}ERROR${TERMCOLORS_NONE}
|
104
|
__JAT__SWORD_TEST=${TERMCOLORS_YELLOW}test${TERMCOLORS_NONE}
|
104
|
__JAT__SWORD_TEST=${TERMCOLORS_YELLOW}test${TERMCOLORS_NONE}
|
105
|
__JAT__SWORD_TINFO=${TERMCOLORS_LBLACK}INFO${TERMCOLORS_NONE}
|
105
|
__JAT__SWORD_TINFO=${TERMCOLORS_LBLACK}INFO${TERMCOLORS_NONE}
|
|
|
|
|
1111
|
# Show assert fail message $1 to stderr
|
1111
|
# Show assert fail message $1 to stderr
|
1112
|
#
|
1112
|
#
|
1113
|
__jat__show \
|
1113
|
__jat__show \
|
1114
|
- " $__JAT__SWORD_SUT.$__JAT__SWORD_FAIL: $1"
|
|
|
|
|
1114
|
+ " $__JAT__SWORD_ASSERT.$__JAT__SWORD_FAIL: $1"
|
1115
|
}
|
1115
|
}
|
1116
|
|
1116
|
|
1117
|
__jat__show_pass() {
|
1117
|
__jat__show_pass() {
|
|
|
|
|
1119
|
# Show assert fail message $1 to stderr
|
1119
|
# Show assert fail message $1 to stderr
|
1120
|
#
|
1120
|
#
|
1121
|
__jat__show \
|
1121
|
__jat__show \
|
1122
|
- " $__JAT__SWORD_SUT.$__JAT__SWORD_PASS: $1"
|
|
|
|
|
1122
|
+ " $__JAT__SWORD_ASSERT.$__JAT__SWORD_PASS: $1"
|
1123
|
}
|
1123
|
}
|
1124
|
|
1124
|
|
1125
|
__jat__show_pend() {
|
1125
|
__jat__show_pend() {
|