summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-06-24 16:21:01 +1000
committerMaxime Coste <mawww@kakoune.org>2025-06-24 16:22:37 +1000
commitf73a2957f233ec07f1b3ab81957c1c3e98d1f5da (patch)
treebcc50b7030d9b171555a28a68eb3acd8767d6788
parentf44e01db03b43d332e1f98c05509aaeaf1574d3d (diff)
Fix test runner for tests using assert_eq
assert_eq got renamed to check_json_eq but the fact this was used by tests in their script file was missed, renamed it back to assert_eq as this function is not necessarily used for json.
-rwxr-xr-xtest/run6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run b/test/run
index 8ce73f2a..d48a1a43 100755
--- a/test/run
+++ b/test/run
@@ -136,7 +136,7 @@ fail_ifn() {
fi
}
-check_json_eq() {
+assert_eq() {
if [ ! "$1" = "$2" ]; then
fail_ifn
if command -v git > /dev/null; then
@@ -210,7 +210,7 @@ ui_out() {
while read -r event <&4; do
if printf %s "$event" | "${arg#-until-}" "$pattern" >/dev/null; then
if [ $# -ne 0 ]; then
- check_json_eq "$1" "$event"
+ assert_eq "$1" "$event"
shift
fi
break
@@ -219,7 +219,7 @@ ui_out() {
;;
*)
read -r event <&4
- check_json_eq "$arg" "$event"
+ assert_eq "$arg" "$event"
;;
esac
}