forked from code-golf/code-golf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port Card Number and Pangram to test{}
This required a small tweak to outputTests() which I think is valid, we skip over any empty strings in expected output. This allows these two holes to have arguments that produce no output. I don't think any current holes support empty string as an expected output for an arg. The stutter in Card Number of repeating the valid hardcoded test cases is a little unforunate but it's better than having yet another struct we turn into test{}. Maybe it points to having a simple builder func that takes an arg and a bool. We now unconditionally print the arg separator in outputTests() which is fine since we merged code-golf#1333 which unconditionally strips trailing whitespace from every hole's expected output.
- Loading branch information
Showing
3 changed files
with
25 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters