summaryrefslogtreecommitdiff
path: root/ar/.local/bin/tests
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-07-01 15:51:06 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-07-01 15:51:06 +0900
commit8d9a93f733d0b78274349c6646593d220a727b00 (patch)
treeeb37ffe2a08d84592950b91720a96d10a9475943 /ar/.local/bin/tests
parent8e4c077f9c1d3f8487a5c79c832d2d6d51c7c881 (diff)
test(qndl-artist): assert alias map beats folder match on conflict
Diffstat (limited to 'ar/.local/bin/tests')
-rw-r--r--ar/.local/bin/tests/test-qndl-artist.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ar/.local/bin/tests/test-qndl-artist.sh b/ar/.local/bin/tests/test-qndl-artist.sh
index d62e837..ea5a03a 100644
--- a/ar/.local/bin/tests/test-qndl-artist.sh
+++ b/ar/.local/bin/tests/test-qndl-artist.sh
@@ -13,12 +13,13 @@ trap 'rm -rf "$TMP"' EXIT
export XDG_MUSIC_DIR="$TMP/Music"
export QNDL_ALIASES="$TMP/aliases.tsv"
mkdir -p "$XDG_MUSIC_DIR"
-printf '# header\n4MEN\t4Men\n' > "$QNDL_ALIASES"
-mkdir -p "$XDG_MUSIC_DIR/Epik High" "$XDG_MUSIC_DIR/4Men"
+printf '# header\n4MEN\t4Men\nFoo\tBar\n' > "$QNDL_ALIASES"
+mkdir -p "$XDG_MUSIC_DIR/Epik High" "$XDG_MUSIC_DIR/4Men" "$XDG_MUSIC_DIR/Foo"
# --- normalize ---
eq "normalize: map hit" "4Men" "$("$BIN" normalize '4MEN')"
eq "normalize: case fallback" "Epik High" "$("$BIN" normalize 'EPIK HIGH')"
eq "normalize: unknown as-is" "NewArtist" "$("$BIN" normalize 'NewArtist')"
+eq "normalize: map beats folder" "Bar" "$("$BIN" normalize 'Foo')"
exit $FAIL