aboutsummaryrefslogtreecommitdiff
path: root/ch23/23_a_1/23_a_1.txt
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2025-09-14 17:10:23 +0200
committerJan Sucan <jan@jansucan.com>2025-09-14 21:18:59 +0200
commit9d89965b0661d1968151d9b646148b6a71209705 (patch)
tree6da0620222dabbf8dd9c038af305a174d4c68868 /ch23/23_a_1/23_a_1.txt
parentad4cf7db4cd61d01f1e2191d1d69edd5916d6e88 (diff)
23_a_2: Add solution
Diffstat (limited to 'ch23/23_a_1/23_a_1.txt')
-rw-r--r--ch23/23_a_1/23_a_1.txt60
1 files changed, 59 insertions, 1 deletions
diff --git a/ch23/23_a_1/23_a_1.txt b/ch23/23_a_1/23_a_1.txt
index 7b594a0..7de697d 100644
--- a/ch23/23_a_1/23_a_1.txt
+++ b/ch23/23_a_1/23_a_1.txt
@@ -1 +1,59 @@
-Present a helpful GUI error message if the call to xmlNew returns Nothing.
+1. Present a helpful GUI error message if the call to xmlNew returns Nothing.
+
+2. Modify the podcatcher to be able to run with either the GUI or the
+ command-line interface from a single code base. Hint: move common code out of
+ PodMainGUI.hs, then have two different Main modules, one for the GUI, and one
+ for the command line.
+
+
+
+
+Testing 1.:
+ Steps:
+ - Compile PodMainGUI
+ - Remove podresources.glade file
+ - Run PodMainGUI
+ Result:
+ - Error dialog window informing that podresources.glade file has not been
+ found is displayed
+
+
+Testing 2.:
+ Steps:
+ - Compile PodMainGUI
+ - Run PodMainGUI
+ - Add a podcast
+ - Click Update
+ - Click Download
+ Result:
+ - The mp3 files have been downloaded
+
+ Steps:
+ - Exit PodMainGUI
+ - Remove pod.db file
+ - Remove the mp3 files
+ - Run PodMainGUI
+ - Add a podcast
+ - Click Fetch
+ Result:
+ - The mp3 files have been downloaded
+
+ Steps:
+ - Exit PodMainGUI
+ - Compile PodMainCLI
+ - Run PodMainCLI
+ - Add a podcast
+ - Run Update
+ - Run Download
+ Result:
+ - The mp3 files have been downloaded
+
+ Steps:
+ - Exit PodMainCLI
+ - Remove pod.db file
+ - Remove the mp3 files
+ - Run PodMainCLI
+ - Add a podcast
+ - Run Fetch
+ Result:
+ - The mp3 files have been downloaded