Skip to content

Commit

Permalink
pc would blow up when passed no params
Browse files Browse the repository at this point in the history
corrected chainged test for usage and added test
  • Loading branch information
masukomi committed Feb 10, 2020
1 parent feabb72 commit 1628ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pc.scm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

;; VALIDATIONS
; have they specified the file we're dealing with?
(if (equal? "UNKNOWN" (alist-ref 'comments-file-path cli-options))
(if (not (alist-ref 'comments-file-path cli-options))
(usage))

; if we're not killing it
Expand Down
5 changes: 5 additions & 0 deletions src/tests/test_client
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
#
source ./test_suite_management.sh

test_1_usage_message() {
usage=$($REPO_ROOT/src/pc)
assert_equals 0 $?
}

#
# # test that it doesn't blow up when there aren't any comments
test_2_no_comments () {
Expand Down

0 comments on commit 1628ba4

Please sign in to comment.