From fe41442f90cb53274540e159f7cfbda4335a5841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Mon, 22 Jun 2020 22:57:16 +0200 Subject: #23 add (failing) test case for this PR --- tests/describe.bats | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/describe.bats') diff --git a/tests/describe.bats b/tests/describe.bats index 1541974..00aa3dc 100644 --- a/tests/describe.bats +++ b/tests/describe.bats @@ -5,6 +5,13 @@ [[ ${lines[1]} =~ "Browse the World Wide Web" ]] } +@test "Desktop file names containing single quotes can be processed" { + run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe desktop "./data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop" + [ "$status" -eq 0 ] + [[ ${lines[0]} =~ "Firefox" ]] + [[ ${lines[1]} =~ "Browse the World Wide Web" ]] +} + @test "Name and description of ls command should be given" { run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe command ls [ "$status" -eq 0 ] -- cgit v1.2.3