-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isogram: add generator template #732
base: main
Are you sure you want to change the base?
Conversation
99a6883
to
b65c2ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be going over the exercises first.
@@ -0,0 +1,13 @@ | |||
(ns isogram-test | |||
(:require [clojure.test :refer [deftest testing is]] | |||
isogram)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without brackets, the first letter is typically aligned with the bracket above
isogram)) | |
isogram)) |
isogram)) | ||
|
||
{{#test_cases.isIsogram~}} | ||
(deftest isogram_test_{{idx}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(deftest isogram_test_{{idx}} | |
(deftest isogram?_test_{{idx}} |
(deftest isogram_test_{{idx}} | ||
(testing "{{description}}" | ||
{{#expected~}} | ||
(is (isogram/isogram? "{{input.phrase}}")))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(is (isogram/isogram? "{{input.phrase}}")))) | |
(is (true? (isogram/isogram? "{{input.phrase}}"))))) |
{{#expected~}} | ||
(is (isogram/isogram? "{{input.phrase}}")))) | ||
{{else~}} | ||
(is (not (isogram/isogram? "{{input.phrase}}"))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(is (not (isogram/isogram? "{{input.phrase}}"))))) | |
(is (false? (isogram/isogram? "{{input.phrase}}"))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a newline at the end of the template, but I'm guessing you did not want to include one?
Edit: there's also a generators/.problem-specifications directory.
I'm seeing the issue with the line trimming on this one. How difficult would be to do post-processing? (it looks a bit clunky as a solution). Personally I'm ok with the extra spaces. |
b65c2ec
to
c23ad50
Compare
Should be merged after #728 is merged